| 1 | static <A> Pair<A, Int> multiSetTopPair(MultiSet<A> ms) {
 | 
| 2 | if (empty(ms)) null; | 
| 3 | A a = ms.getMostPopularEntry(); | 
| 4 | ret pair(a, ms.get(a)); | 
| 5 | } | 
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: | 603 / 652 | 
| Referenced in: | [show references] |