Libraryless. Click here for Pure Java version (2795L/18K).
1 | static S firstMatchingNLPattern(Collection<S> patterns, S s) { |
2 | new Matches m; |
3 | L<S> tok = parse3(s); |
4 | for (S pat : unnull(patterns)) |
5 | if (match(pat, tok, m)) |
6 | ret pat; |
7 | null; |
8 | } |
Began life as a copy of #1012505
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014441 |
Snippet name: | firstMatchingNLPattern |
Eternal ID of this version: | #1014441/3 |
Text MD5: | 4037881d28a5ec8997968d8a3e7b6e78 |
Transpilation MD5: | d9ba9ba0f248db80d791a662e34adb10 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-12-14 17:10:28 |
Source code size: | 198 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 344 / 425 |
Version history: | 2 change(s) |
Referenced in: | [show references] |