array-replace ( object -- shape ) - Factor Documentation

array-replace ( object -- shape )


Vocabulary
arrays .shaped

Inputs
object an object


Outputs
shape an object


Definition
IN: arrays.shaped

GENERIC: array-replace ( object -- shape )


Methods
USING: arrays.shaped ;

M: f array-replace ;


USING: arrays.shaped kernel ;

M: object array-replace drop f ;


USING: arrays.shaped kernel sequences ;

M: sequence array-replace
dup flat? [ length ] [ [ array-replace ] map ] if ;

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