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

5
LINES

< > BotCompany Repo | #1020572 // allSetsAreSingletons

JavaX fragment (include)

static <A> bool allSetsAreSingletons(Iterable<Set<A>> l) {
  for (Set<A> set : unnull(l))
    if (l(set) != 1) false;
  true;
}

Author comment

Began life as a copy of #1020571

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020572
Snippet name: allSetsAreSingletons
Eternal ID of this version: #1020572/1
Text MD5: db2a584144718053a8840d52a6b8d30f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-27 01:49:00
Source code size: 131 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 246 / 279
Referenced in: [show references]