Files
ports/devel/p5-Syntax-Keyword-Gather/pkg-descr
T
2026-10-04 04:07:15 +00:00

6 lines
380 B
Plaintext

Perl 6 provides a new control structure -- gather -- that allows lists to be
constructed procedurally, without the need for a temporary variable. Within the
block/closure controlled by a gather any call to take pushes that call's
argument list to an implicitly created array. take returns the number of
elements it took. Syntax::Keyword::Gather implements that control structure.