Arc Forumnew | comments | leaders | submitlogin
5 points by nex3 6093 days ago | link | parent

I believe this ordering is designed to allow map to take multiple lists to map over. As cooldude127 pointed out, you can't really do varargs if you put the function at the end.


1 point by Darmani 6089 days ago | link

  (def foo args
    (apply (last args) (cut 0 (- (len args) 1))))
  arc>(foo 1 2 3 +)
  6
You can, but I can't exactly call that elegant.

-----