Searched refs:bundle_by (Results 1 – 10 of 10) sorted by relevance
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/t/ |
H A D | 11_bundle_by.t | 6 use List::UtilsBy::XS qw(bundle_by); 11 @gots = bundle_by { $_[0] } 1, (1, 2, 3); 12 is_deeply(\@gots, [ 1, 2, 3 ], 'bundle_by 1'); 14 @gots = bundle_by { $_[0] } 2, (1, 2, 3, 4); 15 is_deeply(\@gots, [ 1, 3 ], 'bundle_by 2 first'); 17 @gots = bundle_by { @_ } 2, (1, 2, 3, 4); 18 is_deeply(\@gots, [ 1, 2, 3, 4 ], 'bundle_by 2 all') || diag explain \@gots; 20 @gots = bundle_by { [ @_ ] } 2, (1, 2, 3, 4); 21 is_deeply(\@gots, [ [ 1, 2 ], [ 3, 4 ] ], 'bundle_by 2 [all]'); 23 my %gots = bundle_by { uc $_[1] => $_[0] } 2, qw( a b c d ); [all …]
|
H A D | 99_leaktrace.t | 61 my @a = bundle_by { $_ } 1..10;
|
/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/t/ |
H A D | 12bundle_by.t | 10 is_deeply( [ bundle_by { $_[0] } 1, (1, 2, 3) ], [ 1, 2, 3 ], 'bundle_by 1' ); 12 is_deeply( [ bundle_by { $_[0] } 2, (1, 2, 3, 4) ], [ 1, 3 ], 'bundle_by 2 first' ); 13 is_deeply( [ bundle_by { @_ } 2, (1, 2, 3, 4) ], [ 1, 2, 3, 4 ], 'bundle_by 2 all' ); 14 is_deeply( [ bundle_by { [ @_ ] } 2, (1, 2, 3, 4) ], [ [ 1, 2 ], [ 3, 4 ] ], 'bundle_by 2 [all]' ); 16 is_deeply( { bundle_by { uc $_[1] => $_[0] } 2, qw( a b c d ) }, { B => "a", D => "c" }, 'bundle_by… 18 is_deeply( [ bundle_by { [ @_ ] } 2, (1, 2, 3) ], [ [ 1, 2 ], [ 3 ] ], 'bundle_by 2 yields short fi…
|
/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/ |
H A D | Changes | 22 * Ensure that 'bundle_by' passes a short list to the body function 28 * Added 'count_by', 'weighted_shuffle_by', 'bundle_by'
|
H A D | MANIFEST | 21 t/12bundle_by.t
|
H A D | README | 305 bundle_by 307 @vals = bundle_by { BLOCKFUNC } $number, @vals
|
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/benchmark/ |
H A D | bench.pl | 135 pp => sub { List::UtilsBy::bundle_by { $_[0] + $_[1] } 2, 1..100 }, 136 xs => sub { List::UtilsBy::XS::bundle_by { $_[0] + $_[1] } 2, 1..100 },
|
/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/lib/List/ |
H A D | UtilsBy.pm | 637 sub bundle_by(&@) subroutine
|
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/xs-src/ |
H A D | UtilsBy.xs | 784 bundle_by (code, ...) in bundle_by() function
|
/dports/devel/p5-List-AllUtils/List-AllUtils-0.19/ |
H A D | README.md | 1439 @vals = bundle_by { BLOCKFUNC } $number, @vals
|