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

11
LINES

< > BotCompany Repo | #1012470 // msTopTenValues

JavaX fragment (include)

static <A> L<A> msTopTenValues(MultiSet<A> ms, int n) {
  ret ms == null ? emptyList() : ms.getTopTen(n);
}

static <A> L<A> msTopTenValues(MultiSet<A> ms) {
  ret msTopTenValues(ms, 10);
}

static <A> L<A> msTopTenValues(int n, MultiSet<A> ms) {
  ret msTopTenValues(ms, n);
}

Author comment

Began life as a copy of #1011986

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1012470
Snippet name: msTopTenValues
Eternal ID of this version: #1012470/4
Text MD5: 74bdb9ea0513828dbf9485f731151c1b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-22 16:25:27
Source code size: 287 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 302 / 317
Version history: 3 change(s)
Referenced in: [show references]