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

4
LINES

< > BotCompany Repo | #1021064 // splitAtLastSlash

JavaX fragment (include)

static PairS splitAtLastSlash(S s) {
  int i = lastIndexOf(s, '/');
  ret i < 0 ? null : pair(substring(s, 0, i), substring(s, i+1));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021064
Snippet name: splitAtLastSlash
Eternal ID of this version: #1021064/1
Text MD5: 91abd1c9fff14bec82da6aee948eb947
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-20 14:40:17
Source code size: 138 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 290 / 315
Referenced in: [show references]