Home
last modified time | relevance | path

Searched refs:nsort_by (Results 1 – 25 of 26) sorted by relevance

12

/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/t/
H A D02nsort_by.t10 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 D02_nsort_by.t6 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 D99_leaktrace.t19 my @a = nsort_by { $_ } 1 .. 10;
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/t/01_array/
H A Dnsort_by.t13 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 Dutilsby_no_xs.t34 # 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 Dutilsby_no_xs.t35 # 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 Dnsort_by.t13 my $sorted = $arr->nsort_by(sub { $_->{id} });
18 'boxed nsort_by ok';
/dports/devel/p5-Devel-MAT/Devel-MAT-0.44/bin/
H A Dpmat-diff23 my @svsA = nsort_by { $_->addr } $pmatA->dumpfile->heap;
24 my @svsB = nsort_by { $_->addr } $pmatB->dumpfile->heap;
H A Dpmat-leakreport76 foreach my $svkey ( nsort_by { $candidates{$_} } keys %candidates ) {
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/benchmark/
H A Dbench.pl33 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 DMANIFEST12 t/02nsort_by.t
H A DREADME7 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 DGraphWalker.pm73 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 Darray.pl84 $res = $arr->nsort_by(sub { $_ });
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/lib/List/Objects/WithUtils/Role/
H A DArray.pm16 *__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 DREADME.md44 `sort_by`, `rev_sort_by`, `nsort_by`, `rev_nsort_by`,
/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/lib/List/
H A DUtilsBy.pm125 sub nsort_by(&@) subroutine
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/t/
H A Dauthor-no-tabs.t94 '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 DMANIFEST96 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 DPP.pm472 sub nsort_by(&@) { subroutine
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/xs-src/
H A DUtilsBy.xs137 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 DPP.pm904 sub nsort_by(&@) subroutine
/dports/devel/p5-List-SomeUtils-XS/List-SomeUtils-XS-0.58/t/lib/LSU/Test/
H A DFunctions.pm1714 [ 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 DFunctions.pm1714 [ nsort_by { $_->[0] } @list ],
1719 is_deeply( [ nsort_by { $_**2 } @empty ], [] );
/dports/devel/p5-List-AllUtils/List-AllUtils-0.19/
H A DREADME.md1206 @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

12