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

17
LINES

< > BotCompany Repo | #1020734 // matchX_any_allRests

JavaX fragment (include)

1  
static LS matchX_any_allRests(LS patterns, S s) {
2  
  new LS l;
3  
  new Matches m;
4  
  for (S pat2 : unnull(patterns))
5  
    if (matchX(pat2, s, m))
6  
      l.add(m.rest());
7  
  ret l;
8  
}
9  
10  
static LS matchX_any_allRests(S pat, LS inputs) {
11  
  new LS l;
12  
  new Matches m;
13  
  for (S s : unnull(inputs))
14  
    if (matchX(pat, s, m))
15  
      l.add(m.rest());
16  
  ret l;
17  
}

Author comment

Began life as a copy of #1020732

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020734
Snippet name: matchX_any_allRests
Eternal ID of this version: #1020734/3
Text MD5: 7ac1f4f7dca7e8efb7fe1ac24c61036a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-10 20:42:59
Source code size: 362 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 324 / 348
Version history: 2 change(s)
Referenced in: [show references]