Created by imz on December 17, 2014 (last modified on December 17, 2014)
0 users favorited this

Description: The well-known `reverse` with a helper function that accumulates the tail of the result. The helper function is written as an anonymous function (lambda). This way it might resemble JavaScript with its `this` or `self`. Since the helper function must be recursive, we use the higher-order `fix`. (Since I swapped the order of arguments of the helper compared to the usual one, we can't make it even shorter. See the next version)