1 | static int ai_numberOfSteps_for(S s) { |
2 | int n = 0; |
3 | S forS = "for " + curly(s); |
4 | while (ai_text(forS, "step " + (n+1) + " is", "$X") != null) |
5 | ++n; |
6 | ret n; |
7 | } |
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: | 432 / 470 |
Referenced in: | [show references] |