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

13
LINES

< > BotCompany Repo | #1015980 // mapMultiSet - map MultiSet to List

JavaX fragment (include)

static <A, B> L<B> mapMultiSet(MultiSet<A> ms, F2<A, Int, B> f) {
  new L<B> l;
  if (ms != null) for (A key : ms.keySet())
    l.add(callF(f, key, ms.get(key)));
  ret l;
}

static <A, B> L<B> mapMultiSet(MultiSet<A> ms, IF2<A, Int, B> f) {
  new L<B> l;
  if (ms != null) for (A key : ms.keySet())
    l.add(callF(f, key, ms.get(key)));
  ret l;
}

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: 306 / 341
Version history: 1 change(s)
Referenced in: [show references]