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

4
LINES

< > BotCompany Repo | #1030261 - javaTokDropTrailingN - also unnulls

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

Transpiled version (2739L) is out of date.

sS javaTokDropTrailingN(S s) {
  LS tok = javaTok(s);
  ret empty(last(tok)) ? unnull(s) : join(dropLast(tok));
}

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1030261
Snippet name: javaTokDropTrailingN - also unnulls
Eternal ID of this version: #1030261/5
Text MD5: 35a614a831a4be03cf5b8d7e4bfb79af
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-21 13:45:12
Source code size: 116 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 12 / 26
Version history: 4 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1030261 & http://1030261.tinybrain.de