Arc Forumnew | comments | leaders | submitlogin
1 point by evanrmurphy 5097 days ago | link | parent

I like that idea.

I don't see a way you could use it if xs were the only argument, i.e. a way to rewrite `(apply bar xs)`, but in that case apply is more paletable anyway:

  (def foo xs
    (apply bar xs))


3 points by rocketnia 5097 days ago | link

  (def foo xs
    (bar . xs))

-----

1 point by evanrmurphy 5097 days ago | link

I see, so `'(bar . xs)` is a cons cell and `(bar . xs)` is equivalent to `(apply bar xs)`.

-----