/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/enumerable/ |
H A D | min_by_spec.rb | 7 EnumerableSpecs::Numerous.new(42).min_by.should be_an_instance_of(Enumerator) 11 EnumerableSpecs::Empty.new.min_by {|o| o.nonesuch }.should == nil 15 EnumerableSpecs::Numerous.new(*%w[3 2 1]).min_by {|obj| obj.to_i }.should == '1' 28 EnumerableSpecs::Numerous.new(a, b, c).min_by {|obj| obj }.should == c 33 enum.min_by {|o| o.nil? ? 0 : 1 }.should == nil 34 enum.min_by {|o| o.nil? ? 1 : 0 }.should == true 39 multi.min_by {|e| e.size}.should == [1, 2] 51 @enum.min_by(2).should be_an_instance_of(Enumerator) 57 result = @enum.min_by(3) { |i| i.to_s } 63 result = @enum.min_by(500) { |i| i.to_s } [all …]
|
/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/t/ |
H A D | 03max_min_by.t | 34 is_deeply( [ min_by {} ], [], 'empty list yields empty' ); 36 is_deeply( ( scalar min_by { $_ } 10 ), 10, 'unit list yields value in scalar context' ); 37 is_deeply( [ min_by { $_ } 10 ], [ 10 ], 'unit list yields unit list value' ); 39 is_deeply( ( scalar min_by { $_ } 10, 20 ), 10, 'identity function on $_' ); 40 is_deeply( ( scalar min_by { $_[0] } 10, 20 ), 10, 'identity function on $_[0]' ); 42 is_deeply( ( scalar min_by { length $_ } "a", "ccc", "bb" ), "a", 'length function' ); 44 …is_deeply( ( scalar min_by { length $_ } "a", "ccc", "bb", "e" ), "a", 'ties yield first in scalar… 45 …is_deeply( [ min_by { length $_ } "a", "ccc", "bb", "ddd", "e" ], [ "a", "e" ], 'ties yield all mi…
|
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/t/ |
H A D | 04_min_by.t | 6 use List::UtilsBy::XS qw(min_by nmin_by); 13 is_deeply( [ min_by {} ], [], 'empty list yields empty' ); 15 $got = scalar (min_by { $_ } 10); 17 is_deeply( [ min_by { $_ } 10 ], [ 10 ], 'unit list yields unit list value' ); 19 is_deeply( ( scalar min_by { $_ } 10, 20 ), 10, 'identity function on $_' ); 21 $got = scalar(min_by { length $_ } "a", "ccc", "bb"); 24 @gots = min_by { length $_ } "a", "ccc", "bb"; 27 $got = scalar(min_by { length $_ } "a", "ccc", "bb", "ddd"); 30 @gots = min_by { length $_ } "a", "ccc", "b", "ddd";
|
/dports/devel/libtickit/libtickit-0.4.2a/src/ |
H A D | xterm-palette.inc.PL | 32 my $col16 = min_by { $col_rgb->dst_rgb_cheap( $_->as_rgb ) } @XTerm16; 33 my $col8 = min_by { $col_rgb->dst_rgb_cheap( $_->as_rgb ) } @XTerm8;
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/usage/metrics/instrumentations/ |
H A D | database_metric_spec.rb | 31 …expect(subject).to receive(:count).with(any_args, hash_including(start: issues.min_by(&:id).id, fi… 66 …expect(subject).to receive(:count).with(any_args, hash_including(start: issues.min_by(&:id).id, fi… 70 ….cache.read('metric_instrumentation/special_issue_count_minimum_id')).to eq(issues.min_by(&:id).id)
|
/dports/devel/py-rx/Rx-3.2.0/rx/core/operators/ |
H A D | minby.py | 75 def min_by(source: Observable) -> Observable: function 77 return min_by
|
/dports/devel/boost-docs/boost_1_72_0/boost/hana/ |
H A D | minimum.hpp | 63 struct min_by { struct 81 detail::min_by<decltype(&pred)>{&pred} in apply() argument
|
/dports/math/stanmath/math-4.2.0/lib/boost_1.75.0/boost/hana/ |
H A D | minimum.hpp | 63 struct min_by { struct 81 detail::min_by<decltype(&pred)>{&pred} in apply() argument
|
/dports/science/py-scipy/scipy-1.7.1/scipy/_lib/boost/boost/hana/ |
H A D | minimum.hpp | 63 struct min_by { struct 81 detail::min_by<decltype(&pred)>{&pred} in apply() argument
|
/dports/security/keybase/client-v5.7.1/shared/ios/Pods/boost-for-react-native/boost/hana/ |
H A D | minimum.hpp | 63 struct min_by { struct 81 detail::min_by<decltype(&pred)>{&pred} in apply() argument
|
/dports/devel/boost-libs/boost_1_72_0/boost/hana/ |
H A D | minimum.hpp | 63 struct min_by { struct 81 detail::min_by<decltype(&pred)>{&pred} in apply() argument
|
/dports/devel/boost-python-libs/boost_1_72_0/boost/hana/ |
H A D | minimum.hpp | 63 struct min_by { struct 81 detail::min_by<decltype(&pred)>{&pred} in apply() argument
|
/dports/math/py-pystan/pystan-2.19.0.0/pystan/stan/lib/stan_math/lib/boost_1.69.0/boost/hana/ |
H A D | minimum.hpp | 63 struct min_by { 81 detail::min_by<decltype(&pred)>{&pred}
|
/dports/devel/hyperscan/boost_1_75_0/boost/hana/ |
H A D | minimum.hpp | 63 struct min_by { struct 81 detail::min_by<decltype(&pred)>{&pred} in apply() argument
|
/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/ |
H A D | Changes | 19 * Added 'nmax_by' and 'nmin_by' name aliases for 'max_by'/'min_by' 32 * Allow 'max_by' and 'min_by' in list context to return all optimal
|
/dports/games/retroarch/RetroArch-1.9.7/gfx/common/ |
H A D | xinerama_common.c | 92 int min_by = MIN(y + h, info[i].y_org + info[i].height); in xinerama_get_monitor() local 95 int len_y = min_by - max_ty; in xinerama_get_monitor()
|
/dports/lang/rust/rustc-1.58.1-src/library/core/tests/ |
H A D | cmp.rs | 45 assert_eq!(cmp::min_by(1, -1, f), 1); in test_ord_min_max_by() 46 assert_eq!(cmp::min_by(1, -2, f), 1); in test_ord_min_max_by() 47 assert_eq!(cmp::min_by(2, -1, f), -1); in test_ord_min_max_by()
|
/dports/www/py-bokeh/bokeh-2.3.3/bokeh/server/static/js/types/core/util/ |
H A D | array.d.ts | 1 import { map, reduce, min, min_by, max, max_by, sum, cumsum, every, some, find, find_last, find_ind… 2 export { map, reduce, min, min_by, max, max_by, sum, cumsum, every, some, find, find_last, find_ind…
|
/dports/devel/p5-List-UtilsBy-XS/List-UtilsBy-XS-0.05/benchmark/ |
H A D | bench.pl | 65 pp => sub { List::UtilsBy::min_by { $_->{number} } @array }, 66 xs => sub { List::UtilsBy::XS::min_by { $_->{number} } @array },
|
/dports/lang/sagittarius-scheme/sagittarius-0.9.8/test/tests/text/json/jmespath/ |
H A D | compiler.scm | 308 '(min_by "people" (& "age")) people-json-string) 309 (test-compiler '10 '(ref (min_by "people" (& "age")) "age") 313 '(min_by "people" (& (to_number "age_str"))) 318 '(min_by "people" (& "age_str")) people-json-string) 319 (test-runtime-error '(min_by "people" "age") people-json-string)
|
/dports/security/vuls/vuls-0.13.7/vendor/github.com/jmespath/go-jmespath/fuzz/testdata/ |
H A D | expr-194 | 1 min_by(people, &age)
|
H A D | expr-195 | 1 min_by(people, &age_str)
|
/dports/net/goreplay/goreplay-1.2.0/vendor/github.com/jmespath/go-jmespath/go-jmespath-0.3.0/fuzz/testdata/ |
H A D | expr-194 | 1 min_by(people, &age)
|
H A D | expr-195 | 1 min_by(people, &age_str)
|
/dports/security/lego/lego-4.5.3/vendor/github.com/jmespath/go-jmespath/fuzz/testdata/ |
H A D | expr-195 | 1 min_by(people, &age_str)
|