VocabularykernelInputs and outputsWord descriptionPartial application on the left. The following two lines are equivalent:
swap [ swap A ] curry B
[ A ] with B
NotesThis operation is efficient and does not copy the quotation.
ExamplesUSING: kernel math prettyprint sequences ;
1 { 1 2 3 } [ / ] with map .
{ 1 1/2 1/3 }
USING: kernel math prettyprint sequences ;
1000 100 5 iota [ sq + + ] with with map .
{ 1100 1101 1104 1109 1116 }
Definition