Libraryless. Click here for Pure Java version (2688L/17K).
1 | static ItIt<S> uniqueIteratorCI(Iterator<S> it) {
|
2 | Set<S> set = ciSet(); |
3 | ret iff(() -> {
|
4 | while licensed {
|
5 | if (!it.hasNext()) ret endMarker(); |
6 | S a = it.next(); |
7 | if (set.add(a)) ret a; |
8 | } |
9 | ret endMarker(); |
10 | }); |
11 | } |
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: | 401 / 522 |
| Referenced in: | [show references] |