Arc Forumnew | comments | leaders | submitlogin
1 point by skenney26 5944 days ago | link | parent

And here's a better definition of unzip:

  (def unzip (xs (o n 2))
    (apply map list (tuples xs n)))

  arc> (unzip '(a b c d e f) 3)
  ((a d) (b e) (c f))