Arc Forum
new
|
comments
|
leaders
|
submit
login
3 points
by
rntz
5786 days ago |
link
|
parent
(xy (cons x y)) is just 'cons.
(def rev (xs) (foldl cons nil xs))
Although you write your foldl differently than mine; for me, it would be:
(def rev (xs) (foldl flip.cons nil xs))