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)

static S matchOK2OrFail(S s) {
  if (swic(s, "ok "))
    ret substring(s, 3);
  else if (eqic(s, "ok"))
    ret "ok";
  else
    fail(s);
}

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