Libraryless. Click here for Pure Java version (765L/6K/18K).
1 | !759 |
2 | |
3 | p { |
4 | S s = "abc"; |
5 | new Matches m; |
6 | if "abc | def" { /* ok */ } else fail(); |
7 | if "def | abc" { /* ok */ } else fail(); |
8 | if "xyz | def" fail(); |
9 | print("OK"); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009463 |
Snippet name: | Test alternatives in patterns [OK] |
Eternal ID of this version: | #1009463/5 |
Text MD5: | 0a736450d7449ef707e6ce20c9b02ffa |
Transpilation MD5: | e4eab9eb0e43e79ac08706b7cfc932a3 |
Author: | stefan |
Category: | javax / pattern matching |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-03 18:04:30 |
Source code size: | 178 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 465 / 589 |
Version history: | 4 change(s) |
Referenced in: | [show references] |