I have trouble understanding this since I'm not very familiar with Ruby and I need to convert this code to C#:
gifts[(position + 1)..-1] = []
gifts is an array, but what does this line do? Does it remove elements from (position + 1) to -1, or marks them as an empty element?
What I'm using is:
gifts.RemoveRange(0, position + 1);
Array#[]=, I'm sure the Ruby team would be happy to know about it!Rangeend point . . . because e.g.5..-1will do different things inside and outside of[ ]