Arc Forumnew | comments | leaders | submit | larme's commentslogin
2 points by larme 6118 days ago | link | parent | on: bracket expressions and compositions

http://arclanguage.org/item?id=243

At this stage you can only use compose to do this kind of compositions

-----


But f:g is just syntax sugar for (compose f g), and the following code works: ((compose double [+ _ 100]) 4)

Hence i guess after some modification the ":" can support anonymous functions.

-----

4 points by fail 6119 days ago | link

: only works inside symbol names. ~ only works inside symbol names.

-----

3 points by ryantmulligan 6118 days ago | link

Great documentation. For consistency though, I don't see why these things shouldn't work with anonymous functions.

-----