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

4
LINES

< > BotCompany Repo | #1018111 // allTokSplits_dropN_iterator - drops splitting N token; results are not actual CNC

JavaX fragment (include)

static IterableIterator<Pair<LS>> allTokSplits_dropN_iterator(final LS tok) {
  ret mapIterator(countIterator_exclusive_step(2, l(tok)-2, 2),
    func(int i) { pair(subList(tok, 0, i), subList(tok, i+1)) });
}

Author comment

Began life as a copy of #1018107

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018111
Snippet name: allTokSplits_dropN_iterator - drops splitting N token; results are not actual CNC
Eternal ID of this version: #1018111/3
Text MD5: 7628e1e45b68b6bc6080359f292b48bc
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-02 13:51:50
Source code size: 212 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 374 / 387
Version history: 2 change(s)
Referenced in: [show references]