Libraryless. Click here for Pure Java version (2479L/16K).
1 | static ItIt<S> anagrams_iterator(S s) { |
2 | Set<S> seen = litciset(s); |
3 | ret mapI_notNulls(l -> { S x = join(asList(l)); ret add(seen, x) ? x : null; }, |
4 | allPermutations_iterator(characters(s))); |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1023996 |
Snippet name: | anagrams_iterator (case insensitive) |
Eternal ID of this version: | #1023996/8 |
Text MD5: | 0c070827bc8a8401bb26000091158bae |
Transpilation MD5: | 8a8eea0c0c160ad0a02dcc6f958f2555 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-15 02:35:49 |
Source code size: | 202 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 210 / 319 |
Version history: | 7 change(s) |
Referenced in: | [show references] |