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

3
LINES

< > BotCompany Repo | #1028859 // multiSetSingletons

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3023L/19K).

1  
static <A> L<A> multiSetSingletons(MultiSet<A> ms) {
2  
  ret ms == null ? null : filter(ms.asSet(), a -> ms.get(a) == 1);
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028859
Snippet name: multiSetSingletons
Eternal ID of this version: #1028859/1
Text MD5: adba3d05d7b5a7fe155ab42358d22cb2
Transpilation MD5: 26ccf6f41eaad2667112dcf3659f144a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-10 14:12:52
Source code size: 123 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 151 / 222
Referenced in: [show references]