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

6
LINES

< > BotCompany Repo | #1032688 // noTok - the not-a tokenizer (every character is a code token, all non-code tokens are empty)

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

Libraryless. Click here for Pure Java version (5115L/28K).

static LS noTok(S s) {
  ret lazyList(l(s)*2+1, i ->
    even(i)
      ? ""
      : "" + s.charAt((i-1)/2));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032688
Snippet name: noTok - the not-a tokenizer (every character is a code token, all non-code tokens are empty)
Eternal ID of this version: #1032688/9
Text MD5: e025236b1d725f3c04fc86f891014ca7
Transpilation MD5: 1bf1ef3909c2b8bf9ce0dd1dbe7de52c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-14 20:56:55
Source code size: 115 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 100 / 159
Version history: 8 change(s)
Referenced in: [show references]