
18 Apr
2015
18 Apr
'15
1:10 p.m.
Am 04/17/2015 um 11:18 PM schrieb Michael Orlitzky:
Why do you want to avoid recursion? You could rewrite this to use list indices if you really wanted to, but anything you come up with is going to be essentially recursive, only less safe
Thanks for the code sample and pointing out that there may not be any last dropped element. I was wondering if there is to achive the desired behavior by plugging together higher-order functions. This was the only reason why I wanted to avoid explicit recursion.