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

7
LINES

< > BotCompany Repo | #1012780 // ai_matchPattern_splitIndices - ai_matchPattern returning split indices

JavaX fragment (include)

1  
static L<Int> ai_matchPattern_splitIndices(S pat, S input) {
2  
  pat = quoteUnlessQuoted(pat);
3  
  S function = ai_forward(pat, "can be matched with");
4  
  function = function + "_splitIndices";
5  
  if (!has_verified(function, "is", "a safe function to call")) fail("no mama: " + function);
6  
  ret (L<Int>) callAndMake(function, unquote(pat), input);
7  
}

Author comment

Began life as a copy of #1012773

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: #1012780
Snippet name: ai_matchPattern_splitIndices - ai_matchPattern returning split indices
Eternal ID of this version: #1012780/2
Text MD5: 1d15b46b244398ebc4d29448c357e1ef
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-13 02:44:45
Source code size: 349 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 392 / 430
Version history: 1 change(s)
Referenced in: [show references]