Arc Forumnew | comments | leaders | submitlogin
7 points by shiro 6160 days ago | link | parent

apply copies its argument list (guaranteed by Scheme spec). So this line lets the apply copy x, then passes it to a function that just returns the copied list. It may be faster than traversing the list in arc, for apply may be able to take advantage of underlying Scheme.


2 points by akkartik 6160 days ago | link

Worth encapsulating in a macro perhaps?

  (copy x)

-----

1 point by lojic 6160 days ago | link

Cool - thx. Probably worth a small comment in the code.

-----