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

5
LINES

< > BotCompany Repo | #1011026 // mapGetter - Map to F1

JavaX fragment (include)

static <A, B> F1<A, B> mapGetter(final Map<A, B> map) {
  ret new F1<A, B>() {
    B get(A a) { ret map.get(a); }
  };
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011026
Snippet name: mapGetter - Map to F1
Eternal ID of this version: #1011026/2
Text MD5: ecd0cc6c4cd7163ba75138a67782cdf6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-11 19:24:51
Source code size: 124 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 510 / 556
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011032 - mainFunctionToF1
#1026169 - mapGet_if1 - Map to IF1, handle nulls