/dports/www/monolith/monolith-2.6.1/cargo-crates/itertools-0.10.1/src/ |
H A D | grouping_map.rs | 317 self.min_by(|_, v1, v2| V::cmp(v1, v2)) in min() 339 pub fn min_by<F>(self, mut compare: F) -> HashMap<K, V> in min_by() function 371 self.min_by(|key, v1, v2| f(key, &v1).cmp(&f(key, &v2))) in min_by_key()
|
/dports/devel/py-rx1/Rx-1.6.1/rx/linq/observable/ |
H A D | min.py | 29 return self.min_by(identity, comparer).map(first_only)
|
H A D | minby.py | 47 def min_by(self, key_selector, comparer=None): function
|
/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/lib/List/ |
H A D | UtilsBy.pm | 232 sub min_by(&@) subroutine 257 *nmin_by = \&min_by;
|
/dports/devel/py-rx/Rx-3.2.0/rx/core/operators/ |
H A D | min.py | 36 ops.min_by(identity, comparer),
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/import_export/project/sample/ |
H A D | date_calculator.rb | 22 closest_date = @dates.min_by { |date| (date - average_date).abs }
|
/dports/lang/elixir/elixir-1.12.3/lib/elixir/test/elixir/ |
H A D | enum_test.exs | 601 test "min_by/2" do 604 assert Enum.min_by([1, 1.0], & &1) === 1 605 assert Enum.min_by([1.0, 1], & &1) === 1.0 608 Enum.min_by([], fn x -> String.length(x) end) 612 Enum.min_by(%{}, & &1) 616 test "min_by/3 with stable sorting" do 617 assert Enum.min_by([1, 1.0], & &1, &<=/2) === 1 620 assert Enum.min_by([1.0, 1], & &1, &</2) === 1 623 test "min_by/3 with module" do 631 test "min_by/4" do [all …]
|
/dports/benchmarks/hyperfine/hyperfine-1.12.0/src/ |
H A D | min_max.rs | 15 .min_by(|a, b| a.partial_cmp(b).unwrap()) in min()
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/error_tracking/ |
H A D | stack_trace_highlight_decorator.rb | 47 e.alternatives.min_by(&:tag)&.tag
|
/dports/devel/py-pydash/pydash-4.8.0/src/pydash/ |
H A D | numerical.py | 392 return min_by(collection, default=default) 395 def min_by(collection, iteratee=None, default=NoValue): function
|
/dports/mail/rspamd/rspamd-3.1/contrib/lua-fun/ |
H A D | fun.lua | 737 local min_by = function(cmp, gen_x, param_x, state_x) function 748 methods.min_by = method1(min_by) 749 exports.min_by = export1(min_by) 750 methods.minimum_by = methods.min_by 751 exports.minimum_by = exports.min_by
|
/dports/mail/rspamd-devel/rspamd-93430bb/contrib/lua-fun/ |
H A D | fun.lua | 737 local min_by = function(cmp, gen_x, param_x, state_x) function 748 methods.min_by = method1(min_by) 749 exports.min_by = export1(min_by) 750 methods.minimum_by = methods.min_by 751 exports.minimum_by = exports.min_by
|
/dports/lang/elixir-devel/elixir-1.13.1/lib/elixir/test/elixir/ |
H A D | enum_test.exs | 601 test "min_by/2" do 604 assert Enum.min_by([1, 1.0], & &1) === 1 605 assert Enum.min_by([1.0, 1], & &1) === 1.0 608 Enum.min_by([], fn x -> String.length(x) end) 612 Enum.min_by(%{}, & &1) 616 test "min_by/3 with stable sorting" do 617 assert Enum.min_by([1, 1.0], & &1, &<=/2) === 1 620 assert Enum.min_by([1.0, 1], & &1, &</2) === 1 623 test "min_by/3 with module" do 631 test "min_by/4" do [all …]
|
/dports/devel/p5-List-UtilsBy/List-UtilsBy-0.11/ |
H A D | README | 7 use List::UtilsBy qw( nsort_by min_by ); 12 my $shortest_name = min_by { length } @names; 112 min_by 114 $optimal = min_by { KEYFUNC } @vals 116 @optimal = min_by { KEYFUNC } @vals 127 Similar to calling both "min_by" and "max_by" with the same key
|
/dports/misc/broot/broot-1.7.0/cargo-crates/fallible-iterator-0.2.0/ |
H A D | CHANGELOG.md | 22 …`partition`, `find_map`, `max_by`, `min_by`, `unzip`, `cycle`, and `try_fold` to `FallibleIterator…
|
/dports/devel/sentry-cli/sentry-cli-1.71.0/cargo-crates/fallible-iterator-0.2.0/ |
H A D | CHANGELOG.md | 22 …`partition`, `find_map`, `max_by`, `min_by`, `unzip`, `cycle`, and `try_fold` to `FallibleIterator…
|
/dports/databases/ods2sql/ods2sql-aca63183274038487cecb6be17d7f65e92178b8c/cargo-crates/fallible-iterator-0.2.0/ |
H A D | CHANGELOG.md | 22 …`partition`, `find_map`, `max_by`, `min_by`, `unzip`, `cycle`, and `try_fold` to `FallibleIterator…
|
/dports/security/sequoia/sequoia-383133f6be990237044900a4df676488bf8dd71e/cargo-crates/fallible-iterator-0.2.0/ |
H A D | CHANGELOG.md | 22 …`partition`, `find_map`, `max_by`, `min_by`, `unzip`, `cycle`, and `try_fold` to `FallibleIterator…
|
/dports/textproc/ripgrep-all/ripgrep-all-0.9.6/cargo-crates/fallible-iterator-0.2.0/ |
H A D | CHANGELOG.md | 22 …`partition`, `find_map`, `max_by`, `min_by`, `unzip`, `cycle`, and `try_fold` to `FallibleIterator…
|
/dports/www/firefox/firefox-99.0/third_party/rust/fallible-iterator/ |
H A D | CHANGELOG.md | 22 …`partition`, `find_map`, `max_by`, `min_by`, `unzip`, `cycle`, and `try_fold` to `FallibleIterator…
|
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/rust/fallible-iterator/ |
H A D | CHANGELOG.md | 22 …`partition`, `find_map`, `max_by`, `min_by`, `unzip`, `cycle`, and `try_fold` to `FallibleIterator…
|
/dports/security/arti/arti-9d0ede26801cdb182daa85c3eb5f0058dc178eb6/cargo-crates/fallible-iterator-0.2.0/ |
H A D | CHANGELOG.md | 22 …`partition`, `find_map`, `max_by`, `min_by`, `unzip`, `cycle`, and `try_fold` to `FallibleIterator…
|
/dports/www/firefox-esr/firefox-91.8.0/third_party/rust/fallible-iterator/ |
H A D | CHANGELOG.md | 22 …`partition`, `find_map`, `max_by`, `min_by`, `unzip`, `cycle`, and `try_fold` to `FallibleIterator…
|
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/rust/fallible-iterator/ |
H A D | CHANGELOG.md | 22 …`partition`, `find_map`, `max_by`, `min_by`, `unzip`, `cycle`, and `try_fold` to `FallibleIterator…
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/models/ci/ |
H A D | build_metadata.rb | 66 [(job_timeout || project_timeout), runner_timeout].compact.min_by { |timeout| timeout.value }
|