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

7
LINES

< > BotCompany Repo | #1035829 // mapsGet

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (9241L) is out of date.

static <A, B> L<B> mapsGet(A key, Iterable<? extends Map<A, B>> maps) {
  ret map(maps, map -> map?.get(key));
}

static <A, B> L<B> mapsGet(Iterable<? extends Map<A, B>> maps, A key) {
  ret mapsGet(key, maps);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1035829
Snippet name: mapsGet
Eternal ID of this version: #1035829/2
Text MD5: 25bb6dd2e80bf2b6f091172ab94b4a42
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-02 16:21:10
Source code size: 215 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 115 / 168
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)