Home
last modified time | relevance | path

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 D11_bundle_by.t6 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 D99_leaktrace.t61 my @a = bundle_by { $_ } 1..10;
/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/t/
H A D12bundle_by.t10 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 DChanges22 * Ensure that 'bundle_by' passes a short list to the body function
28 * Added 'count_by', 'weighted_shuffle_by', 'bundle_by'
H A DMANIFEST21 t/12bundle_by.t
H A DREADME305 bundle_by
307 @vals = bundle_by { BLOCKFUNC } $number, @vals
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/benchmark/
H A Dbench.pl135 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 DUtilsBy.pm637 sub bundle_by(&@) subroutine
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/xs-src/
H A DUtilsBy.xs784 bundle_by (code, ...) in bundle_by() function
/dports/devel/p5-List-AllUtils/List-AllUtils-0.19/
H A DREADME.md1439 @vals = bundle_by { BLOCKFUNC } $number, @vals