Arc Forumnew | comments | leaders | submitlogin
3 points by rntz 5544 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))