end-cursor ( collection -- cursor ) - Factor Documentation

end-cursor ( collection -- cursor )


Vocabulary
cursors

Inputs
collection an object


Outputs
cursor an object


Definition
IN: cursors

GENERIC: end-cursor ( collection -- cursor )


Methods
USING: cursors kernel ;

M: finite-stream-cursor end-cursor drop end-of-stream ; inline


USING: accessors cursors cursors.private hash-sets kernel
sequences ;

M: hash-set end-cursor dup array>> length <hash-set-cursor>
; inline


USING: accessors cursors cursors.private hashtables kernel
sequences ;

M: hashtable end-cursor
dup array>> length <hashtable-cursor> ; inline


USING: cursors kernel sequences ;

M: sequence end-cursor dup length <sequence-cursor> ; inline

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