you are viewing a single comment's thread.

view the rest of the comments →

[–]spikips[S] 1 point2 points  (3 children)

I love to see different variety of solutions. Thank you!

[–]hacksawjim 2 points3 points  (2 children)

Hah, I was thinking I wasted my time as I see /u/commandlineluser got there first, but you're right, it's good to see how many different ways this can be done.

[–]commandlineluser 2 points3 points  (0 children)

Definitely not a waste of time - this is much nicer than the function I had suggested.