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

7
LINES

< > BotCompany Repo | #1028820 // tok_groupAfterNTokens

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

Transpiled version (2717L) is out of date.

sS tok_groupAfterNTokens(S s, int n) {
  ret tok_groupAfterNTokens(javaTokWithAllBrackets(s), n);
}

sS tok_groupAfterNTokens(LS tok, int n) {
  ret joinSubList(tok, 0, n*2+1) + curly(joinSubList(tok, n*2+1));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1028820
Snippet name: tok_groupAfterNTokens
Eternal ID of this version: #1028820/2
Text MD5: 8d301b6d729e996a9a04d4a3142e0068
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-09 12:56:06
Source code size: 217 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 165 / 247
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1028821 - tok_groupAfterNTokens_all
#1028824 - tok_groupFirstNTokens