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

7
LINES

< > BotCompany Repo | #1020467 // tok_splitAtComma_emptyOnNull - split string at commas honoring tokens, return empty list if input is null

JavaX fragment (include)

static L<S> tok_splitAtComma_emptyOnNull(S s) {
  ret s == null ? emptyList() : tok_splitAtComma(s);
}
  
static L<S> tok_splitAtComma_emptyOnNull(L<S> tok) {
  ret tok == null ? emptyList() : tok_splitAtComma(tok);
}

Author comment

Began life as a copy of #1016884

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: #1020467
Snippet name: tok_splitAtComma_emptyOnNull - split string at commas honoring tokens, return empty list if input is null
Eternal ID of this version: #1020467/3
Text MD5: 7734e74d385c50703773f72f9bee1e25
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-23 16:12:31
Source code size: 223 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 208 / 242
Version history: 2 change(s)
Referenced in: [show references]