1 | static L mapAndRecordToMap(Map recordMap, Iterable l, O f) { |
2 | ret mapAndRecordToMap(recordMap, f, l); |
3 | } |
4 | |
5 | static L mapAndRecordToMap(Map recordMap, O f, Iterable l) { |
6 | L x = emptyList(l); |
7 | if (l != null) for (O o : l) { |
8 | O b = callF(f, o); |
9 | if (recordMap != null) recordMap.put(o, b); |
10 | x.add(b); |
11 | } |
12 | ret x; |
13 | } |
Began life as a copy of #1003239
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: | #1015378 |
Snippet name: | mapAndRecordToMap |
Eternal ID of this version: | #1015378/5 |
Text MD5: | 7467cd23eb1f548bb92987205bf4c731 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-13 15:00:38 |
Source code size: | 333 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 326 / 383 |
Version history: | 4 change(s) |
Referenced in: | [show references] |