Warning: session_start(): open(/var/lib/php/sessions/sess_e74k2ah19c8s11ni88e1e254ci, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
tok_splitAtComma_emptyOnNull - split string at commas honoring tokens, return empty list if input is null [1020467]

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)

1  
static L<S> tok_splitAtComma_emptyOnNull(S s) {
2  
  ret s == null ? emptyList() : tok_splitAtComma(s);
3  
}
4  
  
5  
static L<S> tok_splitAtComma_emptyOnNull(L<S> tok) {
6  
  ret tok == null ? emptyList() : tok_splitAtComma(tok);
7  
}

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: 667 / 682
Version history: 2 change(s)
Referenced in: [show references]