3 ms·
Even if memory usage weren't a problem you still have O(n) time for cdr. This may not be a problem if you implement the higher level functions (map, filter, etc
by jules 16y ago
Even if memory usage weren't a problem you still have O(n) time for cdr. This may not be a problem if you implement the higher level functions (map, filter, etc.) efficiently.
- eru 16y agoYes, higher order functions (especially foldr (resp. reduce)) are the way to go.