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

8
LINES

< > BotCompany Repo | #1006050 // matchOK2OrFail - match simpler version of "ok bla"

JavaX fragment (include)

1  
static S matchOK2OrFail(S s) {
2  
  if (swic(s, "ok "))
3  
    ret substring(s, 3);
4  
  else if (eqic(s, "ok"))
5  
    ret "ok";
6  
  else
7  
    fail(s);
8  
}

Author comment

Began life as a copy of #1006038

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006050
Snippet name: matchOK2OrFail - match simpler version of "ok bla"
Eternal ID of this version: #1006050/3
Text MD5: 90fb412050b09dd204ea65493e48a5fb
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-01 19:26:32
Source code size: 146 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 453 / 471
Version history: 2 change(s)
Referenced in: [show references]