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

10
LINES

< > BotCompany Repo | #1009463 // Test alternatives in patterns [OK]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (765L/6K/18K).

!759

p {
  S s = "abc";
  new Matches m;
  if "abc | def" { /* ok */ } else fail();
  if "def | abc" { /* ok */ } else fail();
  if "xyz | def" fail();
  print("OK");
}

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: 363 / 465
Version history: 4 change(s)
Referenced in: [show references]