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

16
LINES

< > BotCompany Repo | #1028874 // pwt_initial - get initial token ranges

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

Libraryless. Click here for Pure Java version (5273L/29K).

static L<ParsedWithTokens<S>> pwt_initial(int maxTokens, S s) {
  ret pwt_initial(s, maxTokens);
}

static L<ParsedWithTokens<S>> pwt_initial(S s, int maxTokens) {
  ret pwt_initial(javaTok(s), maxTokens);
}

// maxTokens = how many code tokens per range (max)
static L<ParsedWithTokens<S>> pwt_initial(LS tok, int maxTokens) {
  ret concatMap(lai_codeTokens(tok), lai -> pwt_followingTokens(1, maxTokens, lai));
}

static L<ParsedWithTokens<S>> pwt_initial(int maxTokens, LS tok) {
  ret pwt_initial(tok, maxTokens);
}

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: #1028874
Snippet name: pwt_initial - get initial token ranges
Eternal ID of this version: #1028874/4
Text MD5: 6a94a2633a752288bfce9c624cd7dcda
Transpilation MD5: b50ef938333738959ddf0ea8d2684bec
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-10 19:51:55
Source code size: 534 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 274 / 411
Version history: 3 change(s)
Referenced in: [show references]