Libraryless. Click here for Pure Java version (3146L/19K).
sclass TreeOfListFollowups<A> extends Tree<A> { L<A> list; MultiMap<A, Int> index; *(L<A> *list, MultiMap<A, Int> *index, A a) { super(a); } L<Tree<A>> children() { ret children = map(entriesFollowingIndices(list, index.get(a)), s -> new TreeOfListFollowups<A>(list, index, s)); } }
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: | #1028361 |
| Snippet name: | TreeOfListFollowups |
| Eternal ID of this version: | #1028361/5 |
| Text MD5: | a4d89acedf8df00bab71aa7c9dd9858b |
| Transpilation MD5: | 4afca9fd30a58d37693c6f69f0bb48a6 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-06-14 16:37:27 |
| Source code size: | 316 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 407 / 769 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |