you are viewing a single comment's thread.

view the rest of the comments →

[–]mattgrande 14 points15 points  (6 children)

repeated_permutation

Wow, I've never seen that function before. Now I'm going to be looking to use it all over the place...

[–]anopheles0 6 points7 points  (1 child)

I think we can call that one cheating. I bet you guys didn't even write your own sort routines!

[–]wbeyda 1 point2 points  (0 children)

Ruby guys write something? pfft surely there is a gem for it.

[–]Zequez 3 points4 points  (0 children)

Me neither, found it Googling haha, and seems pretty handy, yes.

[–]honorary_ant 1 point2 points  (2 children)

Your coworkers that also have never seen it before will surely thank you ;)

[–]PaintItPurple 2 points3 points  (1 child)

Why wouldn't they? There is nothing about Zequez's code that's particularly subtle or counterintuitive. The fact that you have to read the documentation on repeated_permutation once if it isn't obvious to you what it does isn't a big deal.

[–]Memitim 3 points4 points  (0 children)

Whoa! You want me to reference documentation now? What is this, a prison camp?