Call a function: Difference between revisions

m
Line 1,008:
* By value or by reference is irrelevant; Factor is not applicative.
 
* Partial application is possible by use of curry. Here, the object 2 is curried into the left side of the quotation (anonymous function) <tt>[ - ]</tt>:
<lang Factor>{ 1 2 3 } 2 [ - ] curry map .
! { -1 0 1 }</lang>
1,827

edits