static <A> Pair<A, Int> multiSetTopPair(MultiSet<A> ms) { if (empty(ms)) null; A a = ms.getMostPopularEntry(); ret pair(a, ms.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: | #1013524 |
Snippet name: | multiSetTopPair |
Eternal ID of this version: | #1013524/1 |
Text MD5: | 1ba8fc4bbc0fbc965dc203b6234bf70c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-08 03:23:41 |
Source code size: | 146 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 384 / 423 |
Referenced in: | [show references] |