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

10
LINES

< > BotCompany Repo | #1028808 // intersectCISets

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

Libraryless. Click here for Pure Java version (2668L/17K).

static Set<S> intersectCISets(Cl<S> a, Cl<S> b) {
  ret setIntersection(asCISet(a), asCISet(b));
}

static <A extends Cl<S>> Set<S> intersectCISets(Cl<A> l) {
  Set<S> set = null;
  fOr (Cl<S> x : l)
    set = set == null ? asCISet(x) : intersectCISets(set, x);
  ret set;
}

Author comment

Began life as a copy of #1009544

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: #1028808
Snippet name: intersectCISets
Eternal ID of this version: #1028808/7
Text MD5: 550ded335552d7b4f0ea430b9927a6e5
Transpilation MD5: f1e652af6ab7b1db7989cfc0127c10f0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-11 21:41:25
Source code size: 283 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 248 / 368
Version history: 6 change(s)
Referenced in: [show references]