static Pair<Collection<Attractor>, Set<S>> applyAttractors_getRuleAndStringEmits(L<? extends Attractor> rules, S s) { new L<Attractor> newRules; Set<S> strings = ciSet(); for unnull (Attractor rule : rules) if (rule.matches(s)) { L emits = getEmits(rule); addAll(newRules, instancesOf Attractor(emits)); addAll(strings, stringsOnly(emits)); } ret pair(newRules, strings); }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023775 |
| Snippet name: | applyAttractors_getRuleAndStringEmits |
| Eternal ID of this version: | #1023775/3 |
| Text MD5: | ad74c203780610bb330b3912430529ac |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-07-08 23:08:28 |
| Source code size: | 429 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 453 / 499 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |