Libraryless. Click here for Pure Java version (3146L/19K).
1 | sclass TreeOfListFollowups<A> extends Tree<A> {
|
2 | L<A> list; |
3 | MultiMap<A, Int> index; |
4 | |
5 | *(L<A> *list, MultiMap<A, Int> *index, A a) { super(a); }
|
6 | |
7 | L<Tree<A>> children() {
|
8 | ret children = map(entriesFollowingIndices(list, index.get(a)), |
9 | s -> new TreeOfListFollowups<A>(list, index, s)); |
10 | } |
11 | } |
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: | 408 / 770 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |