Arc Forumnew | comments | leaders | submitlogin
2 points by mdemare 6133 days ago | link | parent

I've also written my first macro!

    (mac ! (a b . body) (cons b (cons a body)))
It allows you to use a OO-syntax, with the receiver first, and the function name second:

    (! "0123test" slice 1)
I've aliased my slice function as "@", so now I can write:

    (! "hello world!!!" @ 0 -3)  ; => "hello world"