Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1024993 // keysForValuesEqualToOrBiggerThan

JavaX fragment (include)

static <A, B> L<A> keysForValuesEqualToOrBiggerThan(Map<A, B> map, B value) {
  new L<A> l;
  for (A key : keys(map))
    if (cmp(map.get(key), value) >= 0)
      l.add(key);
  ret l;
}

Author comment

Began life as a copy of #1021486

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024993
Snippet name: keysForValuesEqualToOrBiggerThan
Eternal ID of this version: #1024993/1
Text MD5: 076fe1e7c5abe4b9ed22fb5732c617eb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-31 23:39:52
Source code size: 191 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 227 / 267
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024994 - filterMap_valuesEqualToOrBiggerThan
#1024998 - keysForValuePredicate - TODO: merge with keysWithValueThat