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.

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

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

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: 203 / 279
Version history: 4 change(s)
Referenced in: [show references]