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

3
LINES

< > BotCompany Repo | #1025972 // splitStringInTwo_iterator

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

Libraryless. Click here for Pure Java version (2276L/14K).

1  
static ItIt<PairS> splitStringInTwo_iterator(S s) {
2  
  ret mapI(range(1, l(s)), i -> pair(substring(s, 0, i), substring(s, i)));
3  
}

Author comment

Began life as a copy of #1017804

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025972
Snippet name: splitStringInTwo_iterator
Eternal ID of this version: #1025972/1
Text MD5: 291a458f70131c951ecef05c05677c90
Transpilation MD5: a824e63544153b9a0f9db5b7b8dcc76a
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-04 20:17:42
Source code size: 131 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 204 / 299
Referenced in: [show references]