loop>array ( ... quot: ( ... -- ... obj/f ) -- ... array )


Vocabulary
sequences.extras

Inputs
quota quotation


Outputs
arrayan array


Word description
Call the quot, which should output an object or f, and collect the objects in array until quot outputs f.

Examples
USING: sequences.extras prettyprint io.encodings.binary io.streams.byte-array io ; B{ 10 20 30 } binary [ [ read1 ] loop>array ] with-byte-reader .
{ 10 20 30 }


See also
loop>array*, loop>array**, loop>sequence, loop>sequence*, loop>sequence**, zero-loop>array, zero-loop>sequence

Definition

: loop>array ( ... quot: ( ... -- ... obj/f ) -- ... array )
{ } loop>sequence ; inline