curried - Factor Documentation

curried
Callables



Vocabulary
kernel

Class description
The class of objects created by curry . These objects print identically to quotations and implement the sequence protocol, however they only use two cells of storage; a reference to the object and a reference to the underlying quotation.

See also
curry , compose , prepose , composed

Definition
IN: kernel

TUPLE: curried { obj read-only } { quot read-only } ;


Methods
USING: accessors compiler.tree.propagation.call-effect kernel ;

M: curried add-quot-to-history quot>> add-quot-to-history ;


USING: accessors compiler.tree.propagation.call-effect kernel ;

M: curried already-inlined-quot? quot>> already-inlined-quot? ;


USING: accessors compiler.tree.propagation.call-effect kernel ;

M: curried cached-effect quot>> cached-effect curry-effect* ;


USING: kernel quotations.private ;

M: curried call uncurry call ;


USING: accessors kernel math sequences ;

M: curried length quot>> length 1 + ;


USING: accessors kernel math quotations sequences ;

M: curried nth
over 0 =
[ nip obj>> literalize ] [ [ 1 - ] dip quot>> nth ] if ;


USING: kernel prettyprint.custom ;

M: curried pprint* pprint-object ;


USING: kernel prettyprint.custom ;

M: curried pprint-delims drop \ [ \ ] ;

AltStyle によって変換されたページ (->オリジナル) /