static int numberOfXYZVars(S s) { ret numberOfXYZVars_c(javaTokC(s)); } static int numberOfXYZVars_c(L<S> ctok) { int m = 0; for (S t : ctok) m = max(m, xyzVarToIndex(t)); ret m; } static int numberOfXYZVars(L<S> tok) { int m = 0; for (int i = 1; i < l(tok); i += 2) m = max(m, xyzVarToIndex(tok.get(i))); ret m; }
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: | #1007878 |
Snippet name: | numberOfXYZVars |
Eternal ID of this version: | #1007878/5 |
Text MD5: | 941b5a6de354db1ecb828f36abcef2b4 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-13 17:29:16 |
Source code size: | 349 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 532 / 565 |
Version history: | 4 change(s) |
Referenced in: | [show references] |