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

7
LINES

< > BotCompany Repo | #1013388 // ai_numberOfSteps_for

JavaX fragment (include)

static int ai_numberOfSteps_for(S s) {
  int n = 0;
  S forS = "for " + curly(s);
  while (ai_text(forS, "step " + (n+1) + " is", "$X") != null)
    ++n;
  ret n;
}

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: #1013388
Snippet name: ai_numberOfSteps_for
Eternal ID of this version: #1013388/1
Text MD5: 69b8eb385fdd03f64f707a0fee052165
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-04 01:12:17
Source code size: 170 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 352 / 390
Referenced in: [show references]