Implements the Perl 6 'gather/take' control structure in Perl 5

Edit Package perl-Syntax-Keyword-Gather
https://metacpan.org/release/Syntax-Keyword-Gather

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. This module implements that control structure.

At the end of the block's execution, the 'gather' returns the list of values stored in the array (in a list context) or a reference to the array (in a scalar context).

Refresh
Refresh
Source Files
Filename Size Changed
Syntax-Keyword-Gather-1.003002.tar.gz 0000014183 13.9 KB
cpanspec.yml 0000000922 922 Bytes
perl-Syntax-Keyword-Gather.changes 0000000196 196 Bytes
perl-Syntax-Keyword-Gather.spec 0000002335 2.28 KB
Latest Revision
Dirk Stoecker's avatar Dirk Stoecker (dstoecker) accepted request 914775 from Dirk Stoecker's avatar Dirk Stoecker (dstoecker) (revision 1)
For perl-Task-Kensho-WebDev update
Comments 0
openSUSE Build Service is sponsored by