Home
last modified time | relevance | path

Searched refs:uniq_by (Results 1 – 25 of 51) sorted by relevance

123

/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/t/
H A D05uniq_by.t10 is_deeply( [ uniq_by { } ], [], 'empty list' );
12 is_deeply( [ uniq_by { $_ } "a" ], [ "a" ], 'unit list' );
14 is_deeply( [ uniq_by { my $ret = $_; undef $_; $ret } "a" ], [ "a" ], 'localises $_' );
16 is_deeply( [ uniq_by { $_ } "a", "b" ], [ "a", "b" ], 'identity function no-op' );
17 is_deeply( [ uniq_by { $_ } "b", "a" ], [ "b", "a" ], 'identity function on $_' );
19 is_deeply( [ uniq_by { $_[0] } "b", "a" ], [ "b", "a" ], 'identity function on $_[0]' );
21 is_deeply( [ uniq_by { length $_ } "a", "b", "cc", "dd", "eee" ], [ "a", "cc", "eee" ], 'length fun…
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/t/
H A D05_uniq_by.t5 use List::UtilsBy::XS qw( uniq_by );
11 is_deeply( [ uniq_by { } ], [], 'empty list' );
13 is_deeply( [ uniq_by { $_ } "a" ], [ "a" ], 'unit list' );
15 @gots = uniq_by { $_ } "a", "b";
18 @gots = uniq_by { $_ } "b", "a";
21 @gots = uniq_by { length $_ } "a", "b", "cc", "dd", "eee";
H A D99_leaktrace.t27 my @a = uniq_by { $_ } 1 .. 10;
/dports/devel/p5-autobox-Transform/autobox-Transform-1.035/t/
H A Duniq_by.t19 subtest uniq_by => sub {
22 [ map { $_->name } $authors->uniq_by("is_prolific") ],
27 "uniq_by simple method call works",
31 [ map { $_->name } $authors->uniq_by([ "is_prolific" ]) ],
36 "uniq_by simple method call works",
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/t/01_array/
H A Duniq_by.t14 my $uniq = $arr->uniq_by(sub { $_->{id} });
22 'uniq_by ok';
24 ok array->uniq_by(sub { $_->foo })->is_empty, 'empty array uniq_by ok';
H A Dutilsby_no_xs.t49 # uniq_by
50 ok array->uniq_by(sub { $_->foo })->is_empty, 'empty array uniq_by ok';
58 my $uniq = $arr->uniq_by(sub { $_->{id} });
66 'uniq_by ok';
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/t/09_autobox_array/
H A Dutilsby_no_xs.t49 # uniq_by
50 ok []->uniq_by(sub { $_->foo })->is_empty, 'empty array uniq_by ok';
58 my $uniq = $arr->uniq_by(sub { $_->{id} });
66 'uniq_by ok';
H A Duniq_by.t14 my $uniq = $arr->uniq_by(sub { $_->{id} });
22 'boxed uniq_by ok';
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/benchmark/
H A Dbench.pl73 pp => sub { List::UtilsBy::uniq_by { $_->{name} } @array },
74 xs => sub { List::UtilsBy::XS::uniq_by { $_->{name} } @array },
/dports/devel/p5-List-AllUtils/List-AllUtils-0.19/t/
H A Dbasic.t89 ok( Baz->can('uniq_by'), 'imported everything, got uniq_by from UtilsBy' );
/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/
H A DMANIFEST14 t/05uniq_by.t
H A DREADME133 uniq_by
135 @vals = uniq_by { KEYFUNC } @vals
141 my @some_fruit = uniq_by { $_->colour } @fruit;
147 my @some_fruit = reverse uniq_by { $_->colour } reverse @fruit;
/dports/devel/py-pydash/pydash-4.8.0/src/pydash/
H A Darrays.py1533 return sorted(uniq_by(array, iteratee=iteratee))
1800 return uniq_by(flatten([array] + list(others)), iteratee=iteratee)
1866 return uniq_by(array)
1869 def uniq_by(array, iteratee=None): function
H A D__init__.py75 uniq_by,
/dports/devel/p5-autobox-Transform/autobox-Transform-1.035/
H A DMANIFEST28 t/uniq_by.t
H A DREADME.md90 $books->uniq_by("id");
184 ->uniq_by("isbn")
186 ->uniq_by("name")
742 my @authors = $authors->uniq_by("author_id");
750 my @example_book_at_price_point = $books->uniq_by(
1069 ### uniq_by - method call: $books are Book objects
1071 my $distinct_books = $books->uniq_by("id");
1073 ### uniq_by - hash key: $books are book hashrefs
1075 my $distinct_books = $books->uniq_by("id");
/dports/www/py-bokeh/bokeh-2.3.3/bokeh/server/static/js/types/core/util/
H A Darray.d.ts24 export declare function uniq_by<T, U>(array: T[], key: (item: T) => U): T[];
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/lib/List/Objects/WithUtils/Role/
H A DArray.pm17 *__uniq_by = \&List::UtilsBy::XS::uniq_by;
22 *__uniq_by = \&List::UtilsBy::uniq_by;
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/
H A DREADME.md45 `min_by`, `max_by`, `nmin_by`, `nmax_by`, `uniq_by`, `partion_by`,
/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/lib/List/
H A DUtilsBy.pm347 sub uniq_by(&@) subroutine
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/t/
H A Dauthor-no-tabs.t122 't/01_array/uniq_by.t',
228 't/09_autobox_array/uniq_by.t',
/dports/devel/p5-List-Objects-WithUtils/List-Objects-WithUtils-2.028003/
H A DMANIFEST124 t/01_array/uniq_by.t
230 t/09_autobox_array/uniq_by.t
/dports/lang/elixir-devel/elixir-1.13.1/lib/elixir/pages/
H A Dcompatibility-and-deprecations.md70 …rsions. For example, `Enum.uniq/2` was soft-deprecated in favor of `Enum.uniq_by/2` in Elixir v1.1…
151 [v1.4] | `Enum.uniq/2` | `Enum.uniq_by/2` (v1.2)
161 [v1.4] | `Stream.uniq/2` | `Stream.uniq_by/2` (v1.2)
/dports/lang/elixir/elixir-1.12.3/lib/elixir/pages/
H A Dcompatibility-and-deprecations.md70 …rsions. For example, `Enum.uniq/2` was soft-deprecated in favor of `Enum.uniq_by/2` in Elixir v1.1…
146 [v1.4] | `Enum.uniq/2` | `Enum.uniq_by/2` (v1.2)
156 [v1.4] | `Stream.uniq/2` | `Stream.uniq_by/2` (v1.2)
/dports/lang/ruby26/ruby-2.6.9/lib/rubygems/
H A Dspecification.rb803 def self.uniq_by(list, &block) # :nodoc: singletonMethod
827 stubs = uniq_by(stubs) { |stub| stub.full_name }
848 stubs = uniq_by(stubs) { |stub| stub.full_name }.group_by(&:name)

123