Libraryless. Click here for Pure Java version (387L/3K/11K).
1 | !752 |
2 | |
3 | p {
|
4 | for (S s : litlist("1 2 3", "1, 2, 3", "1,_2,_44", "_1 _2", "1,", ",1"))
|
5 | print(quote(s) + " => " + structure(splitIDs(s))); |
6 | } |
7 | |
8 | static L<S> splitIDs(S s) {
|
9 | ret asList(s.split("[ ,]+"));
|
10 | } |
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: | #1002667 |
| Snippet name: | Test splitIDs |
| Eternal ID of this version: | #1002667/1 |
| Text MD5: | fa7a1e6dfb44b98e64dac9aa8230be89 |
| Transpilation MD5: | dbbb308d291d8d067548cc8a429947f5 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-02-11 01:14:45 |
| Source code size: | 213 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 749 / 850 |
| Referenced in: | [show references] |