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

6
LINES

< > BotCompany Repo | #1022246 // tok_groupLastTokensToMatchPattern

JavaX fragment (include)

static LS tok_groupLastTokensToMatchPattern(LS tok, LS tokPat) {
  ret concatLists(
    subList(tok, 0, l(tokPat)-2),
    ll(curly(joinSubList(tok, l(tokPat)-2, l(tok)-1)),
       last(tok)));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022246
Snippet name: tok_groupLastTokensToMatchPattern
Eternal ID of this version: #1022246/4
Text MD5: 227414f9d0bdf64880cff9326998c751
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-11 18:17:53
Source code size: 199 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 283 / 323
Version history: 3 change(s)
Referenced in: [show references]