1 | static bool match_multi(S s, S... patterns) { |
2 | ret match_multi(s, null, patterns); |
3 | } |
4 | |
5 | static bool match_multi(S s, Matches m, S... patterns) { |
6 | for (S pattern : patterns) |
7 | if (match(pattern, s, m)) |
8 | true; |
9 | false; |
10 | } |
Began life as a copy of #1011532
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017811 |
Snippet name: | match_multi |
Eternal ID of this version: | #1017811/1 |
Text MD5: | 407ea07f78687866273be9af4b816fec |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-14 20:14:53 |
Source code size: | 234 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 399 / 433 |
Referenced in: | [show references] |