factor/library/collections/flatten.facts

7 lines
368 B
Plaintext
Raw Normal View History

USING: help sequences ;
2006-08-15 21:23:05 -04:00
HELP: flatten
{ $values { "obj" "an object" } { "seq" "a new sequence" } }
{ $description "Recursively descends into lists, arrays, vectors and wrappers. Leaf elements are collected into a new sequence which is output at the end of the traversal." }
{ $notes "This word does not descend into virtual sequences, or user-defined sequences." } ;