[LRUG] Recursion diversion
Andrew Stewart
boss at airbladesoftware.com
Fri Oct 25 07:20:55 PDT 2013
On 25 Oct 2013, at 16:07, Roland Swingler <roland.swingler at gmail.com> wrote:
> This solves the problem https://gist.github.com/knaveofdiamonds/7155189
Respect!
Yikes, I didn't even know about Array#product.
> I'm pretty sure it can be made about half as long.
Challenge accepted. No wait, this has already kept me up all afternoon.
> This better not be an interview test!!
Not an interview test, luckily for me.
> I kind of wish there was a more declarative way to say that things in an array should be in order rather than comparing with sorting, but hey ho.
Nice solution though.
Thanks!
Andy
More information about the Chat
mailing list