Libraryless. Click here for Pure Java version (2705L/17K).
1 | // opt parameter int max |
2 | static Set<ES> applyAttractors_es(L<? extends IAttractor> attractors, Collection<ES> inputs, O... _) {
|
3 | Set<ES> out = cloneLinkedCISet_es(inputs); |
4 | for unnull (ES input : inputs) |
5 | functionReturningList_transitiveHull_ciSet_es(func(ES s) -> Collection<ES> { applyAttractors_es_step(attractors, s) }, input, paramsPlus(_, seen := out));
|
6 | ret out; |
7 | } |
Began life as a copy of #1023199
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023236 |
| Snippet name: | applyAttractors_es (collects emits from matching attractors) |
| Eternal ID of this version: | #1023236/9 |
| Text MD5: | 2dce28bf553f1ada13eb844b10b3017d |
| Transpilation MD5: | fc8cc326ba93186b5baab32f8d9e15d8 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-06-27 13:32:48 |
| Source code size: | 385 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 583 / 762 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |