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

3
LINES

< > BotCompany Repo | #1003368 // splitAtSpace - splits at \s+

JavaX fragment (include)

static L<S> splitAtSpace(S s) {
  ret empty(s) ? emptyList() : asList(s.split("\\s+"));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vdyxwxlmubrt, vouqrxazstgt

No comments. add comment

Snippet ID: #1003368
Snippet name: splitAtSpace - splits at \s+
Eternal ID of this version: #1003368/2
Text MD5: 04f9ecb1a906943bbb8c2dd1f29adc6d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-10 16:14:50
Source code size: 91 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 759 / 1278
Version history: 1 change(s)
Referenced in: #1003714 - splitAtAmpersand - splits at &
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1019230 - splitAtUnderscore
#1029792 - splitAtSpace_trim - splits at \s+, returns only non-empty entries, trims all