1 | static <A, B> L<B> mapMultiSet(MultiSet<A> ms, F2<A, Int, B> f) { |
2 | new L<B> l; |
3 | if (ms != null) for (A key : ms.keySet()) |
4 | l.add(callF(f, key, ms.get(key))); |
5 | ret l; |
6 | } |
7 | |
8 | static <A, B> L<B> mapMultiSet(MultiSet<A> ms, IF2<A, Int, B> f) { |
9 | new L<B> l; |
10 | if (ms != null) for (A key : ms.keySet()) |
11 | l.add(callF(f, key, ms.get(key))); |
12 | ret l; |
13 | } |
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: | #1015980 |
Snippet name: | mapMultiSet - map MultiSet to List |
Eternal ID of this version: | #1015980/2 |
Text MD5: | ea41c669e1b4e6bb0e00ab5c1bfb6ecc |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-28 18:19:47 |
Source code size: | 361 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 471 / 516 |
Version history: | 1 change(s) |
Referenced in: | [show references] |