1 | static int numberOfXYZVars(S s) { |
2 | ret numberOfXYZVars_c(javaTokC(s)); |
3 | } |
4 | |
5 | static int numberOfXYZVars_c(L<S> ctok) { |
6 | int m = 0; |
7 | for (S t : ctok) m = max(m, xyzVarToIndex(t)); |
8 | ret m; |
9 | } |
10 | |
11 | static int numberOfXYZVars(L<S> tok) { |
12 | int m = 0; |
13 | for (int i = 1; i < l(tok); i += 2) |
14 | m = max(m, xyzVarToIndex(tok.get(i))); |
15 | ret m; |
16 | } |
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: | 533 / 566 |
Version history: | 4 change(s) |
Referenced in: | [show references] |