/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/t/ |
H A D | 02nsort_by.t | 10 is_deeply( [ nsort_by { } ], [], 'empty list' ); 12 is_deeply( [ nsort_by { $_ } 1 ], [ 1 ], 'unit list' ); 14 is_deeply( [ nsort_by { my $ret = $_; undef $_; $ret } 10 ], [ 10 ], 'localises $_' ); 16 is_deeply( [ nsort_by { $_ } 20, 25 ], [ 20, 25 ], 'identity function no-op' ); 17 is_deeply( [ nsort_by { $_ } 25, 20 ], [ 20, 25 ], 'identity function on $_' ); 19 is_deeply( [ nsort_by { $_[0] } 30, 35 ], [ 30, 35 ], 'identity function on $_[0]' ); 21 is_deeply( [ nsort_by { length $_ } "a", "bbb", "cc" ], [ "a", "cc", "bbb" ], 'length function' ); 25 is_deeply( [ nsort_by { () = m/(a)/g } "apple", "hello", "armageddon" ], [ "hello", "apple", "armag…
|
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/t/ |
H A D | 02_nsort_by.t | 6 use List::UtilsBy::XS qw( nsort_by rev_nsort_by ); 13 is_deeply( [ nsort_by { } ], [], 'nsort_by empty list' ); 15 is_deeply( [ nsort_by { $_ } 1 ], [ 1 ], 'nsort_by unit list' ); 17 @gots = nsort_by { $_ } 20, 25; 20 @gots = nsort_by { $_ } 25, 20; 23 @gots = nsort_by { $_ } 1.0, 2.1, 1.5; 26 … is_deeply( [ nsort_by { length $_ } "a", "bbb", "cc" ], [ "a", "cc", "bbb" ], 'length function' ); 30 @gots = nsort_by { () = m/(a)/g } "apple", "hello", "armageddon";
|
H A D | 99_leaktrace.t | 19 my @a = nsort_by { $_ } 1 .. 10;
|
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/t/01_array/ |
H A D | nsort_by.t | 13 my $sorted = $arr->nsort_by(sub { $_->{id} }); 18 'nsort_by ok'; 20 ok array->nsort_by(sub { $_->foo })->is_empty, 'empty array nsort_by ok';
|
H A D | utilsby_no_xs.t | 34 # nsort_by 35 ok array->nsort_by(sub { $_->foo })->is_empty, 'empty array nsort_by ok'; 42 $sorted = $arr->nsort_by(sub { $_->{id} }); 47 'nsort_by ok';
|
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/t/09_autobox_array/ |
H A D | utilsby_no_xs.t | 35 # nsort_by 36 ok []->nsort_by(sub { $_->foo })->is_empty, 'empty array nsort_by ok'; 42 $sorted = $arr->nsort_by(sub { $_->{id} }); 47 'nsort_by ok';
|
H A D | nsort_by.t | 13 my $sorted = $arr->nsort_by(sub { $_->{id} }); 18 'boxed nsort_by ok';
|
/dports/devel/p5-Devel-MAT/Devel-MAT-0.44/bin/ |
H A D | pmat-diff | 23 my @svsA = nsort_by { $_->addr } $pmatA->dumpfile->heap; 24 my @svsB = nsort_by { $_->addr } $pmatB->dumpfile->heap;
|
H A D | pmat-leakreport | 76 foreach my $svkey ( nsort_by { $candidates{$_} } keys %candidates ) {
|
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/benchmark/ |
H A D | bench.pl | 33 pp => sub { List::UtilsBy::nsort_by { $_->{number} } @array }, 34 xs => sub { List::UtilsBy::XS::nsort_by { $_->{number} } @array },
|
/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/ |
H A D | MANIFEST | 12 t/02nsort_by.t
|
H A D | README | 7 use List::UtilsBy qw( nsort_by min_by ); 10 my @files_by_age = nsort_by { stat($_)->mtime } @files; 65 nsort_by 67 @vals = nsort_by { KEYFUNC } @vals 81 Similar to "sort_by" and "nsort_by" but returns the list in the reverse 109 For symmetry with the "nsort_by" function, this is also provided under
|
/dports/devel/p5-Devel-MAT/Devel-MAT-0.44/lib/Devel/MAT/ToolBase/ |
H A D | GraphWalker.pm | 73 my @refs = nsort_by { $STRENGTH_ORDER{$_->[0]->strength} } pairs @edges;
|
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/bench/profile/ |
H A D | array.pl | 84 $res = $arr->nsort_by(sub { $_ });
|
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/lib/List/Objects/WithUtils/Role/ |
H A D | Array.pm | 16 *__nsort_by = \&List::UtilsBy::XS::nsort_by; 21 *__nsort_by = \&List::UtilsBy::nsort_by;
|
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/ |
H A D | README.md | 44 `sort_by`, `rev_sort_by`, `nsort_by`, `rev_nsort_by`,
|
/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/lib/List/ |
H A D | UtilsBy.pm | 125 sub nsort_by(&@) subroutine
|
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/t/ |
H A D | author-no-tabs.t | 94 't/01_array/nsort_by.t', 207 't/09_autobox_array/nsort_by.t',
|
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/ |
H A D | MANIFEST | 96 t/01_array/nsort_by.t 209 t/09_autobox_array/nsort_by.t
|
/dports/devel/p5-List-SomeUtils/List-SomeUtils-0.58/lib/List/SomeUtils/ |
H A D | PP.pm | 472 sub nsort_by(&@) { subroutine
|
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/xs-src/ |
H A D | UtilsBy.xs | 137 nsort_by (code, ...) in nsort_by() function 141 nsort_by = 0 in nsort_by()
|
/dports/lang/p5-List-MoreUtils/List-MoreUtils-0.430/lib/List/MoreUtils/ |
H A D | PP.pm | 904 sub nsort_by(&@) subroutine
|
/dports/devel/p5-List-SomeUtils-XS/List-SomeUtils-XS-0.58/t/lib/LSU/Test/ |
H A D | Functions.pm | 1714 [ nsort_by { $_->[0] } @list ], 1719 is_deeply( [ nsort_by { $_ ** 2 } @empty ], [] );
|
/dports/devel/p5-List-SomeUtils/List-SomeUtils-0.58/t/lib/LSU/Test/ |
H A D | Functions.pm | 1714 [ nsort_by { $_->[0] } @list ], 1719 is_deeply( [ nsort_by { $_**2 } @empty ], [] );
|
/dports/devel/p5-List-AllUtils/List-AllUtils-0.19/ |
H A D | README.md | 1206 @vals = nsort_by { KEYFUNC } @vals 1220 Similar to ["sort\_by"](#sort_by) and ["nsort\_by"](#nsort_by) but returns the list in the reverse 1248 For symmetry with the ["nsort\_by"](#nsort_by) function, this is also provided under the
|