callable
Factor handbook » The language » Collections » Quotations

Prev:quotation? ( object -- ? )
Next:Wrappers


Vocabulary
quotations

Class description
The mixin class of objects which can be called. Built-in instances include words, quotations, and compositions built with curry or compose. Words execute when called, and remain ordinary word objects rather than sequences.

Definition


Methods







M:: callable >vector-op-cond ( quot #pick #dup -- quotpair )
#dup quot [vector-op-checked] '[ 2drop @ ] #dup
'[ % _ nnip ] 2array ;