static PairS splitAtFirstSpace(S s) { int i = smartIndexOf(s, ' '); ret pair(trimSubstring(s, 0, i), trimSubstring(s, i+1)); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012569 |
Snippet name: | splitAtFirstSpace - trims all |
Eternal ID of this version: | #1012569/4 |
Text MD5: | 84a481f2c59d8e81bc9faacc5bb5cefb |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-06-16 01:26:26 |
Source code size: | 133 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 414 / 459 |
Version history: | 3 change(s) |
Referenced in: | [show references] |