prefixed - Factor Documentation

prefixed


Vocabulary
sequences .prefixed

Definition
USING: sequences ;

IN: sequences.prefixed

TUPLE: prefixed
{ seq sequence read-only initial: f } { elt read-only } ;


Methods
USING: accessors math sequences sequences.prefixed ;

M: prefixed length seq>> length 1 + ;


USING: accessors kernel math sequences.prefixed
sequences.private ;

M: prefixed nth-unsafe
over zero?
[ nip elt>> ] [ [ 1 - ] [ seq>> ] bi* nth-unsafe ] if ;

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