Libraryless. Click here for Pure Java version (2479L/16K).
static ItIt<S> anagrams_iterator(S s) { Set<S> seen = litciset(s); ret mapI_notNulls(l -> { S x = join(asList(l)); ret add(seen, x) ? x : null; }, allPermutations_iterator(characters(s))); }
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: | 211 / 319 |
Version history: | 7 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |