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

8
LINES

< > BotCompany Repo | #1014441 // firstMatchingNLPattern

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

Libraryless. Click here for Pure Java version (2795L/18K).

static S firstMatchingNLPattern(Collection<S> patterns, S s) {
  new Matches m;
  L<S> tok = parse3(s);
  for (S pat : unnull(patterns))
    if (match(pat, tok, m))
      ret pat;
  null;
}

Author comment

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: 345 / 426
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)