Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1023236 // applyAttractors_es (collects emits from matching attractors)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2705L/17K).

// opt parameter int max
static Set<ES> applyAttractors_es(L<? extends IAttractor> attractors, Collection<ES> inputs, O... _) {
  Set<ES> out = cloneLinkedCISet_es(inputs);
  for unnull (ES input : inputs)
    functionReturningList_transitiveHull_ciSet_es(func(ES s) -> Collection<ES> { applyAttractors_es_step(attractors, s) }, input, paramsPlus(_, seen := out));
  ret out;
}

Author comment

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: 240 / 349
Version history: 8 change(s)
Referenced in: [show references]