static Set<S> applyWordTokRules(L<? extends WordTokRule> rules, S s) { ret concatListsToCISet(map(rules, rule -> rule.matches(s) ? getStringEmits(rule) : null ); } static Set<S> applyWordTokRules(L<? extends WordTokRule> rules, Collection<S> inputs, O... _) { Set<S> out = cloneLinkedCISet(inputs); for unnull (S input : inputs) functionReturningList_transitiveHull_ciSet(func(S s) -> Collection<S> { applyWordTokRules(rules, s) }, input, optPar seen(_, out)); ret out; }
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: | #1023191 |
Snippet name: | applyWordTokRules |
Eternal ID of this version: | #1023191/4 |
Text MD5: | 420140cb4c4ec0756a4c59866f1b9cb8 |
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 20:32:45 |
Source code size: | 503 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 403 / 411 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1023199 - applyWordTokRules_es - use applyAttractors_es instead #1023506 - applyWordTokRule #1023512 - applyWordTokRules_repeat_iterator #1023772 - applyAttractors |