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

11
LINES

< > BotCompany Repo | #1028087 // uniqueIteratorCI - case-insensitive

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

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

static ItIt<S> uniqueIteratorCI(Iterator<S> it) {
  Set<S> set = ciSet();
  ret iff(() -> {
    while licensed {
      if (!it.hasNext()) ret endMarker();
      S a = it.next();
      if (set.add(a)) ret a;
    }
    ret endMarker();
  });
}

Author comment

Began life as a copy of #1024860

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: #1028087
Snippet name: uniqueIteratorCI - case-insensitive
Eternal ID of this version: #1028087/1
Text MD5: 0d0c9af073aa17757c4cbe692d1f10cc
Transpilation MD5: 868a5f0573257a4d7909ba249ee8768e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-17 16:30:15
Source code size: 251 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 163 / 246
Referenced in: [show references]