Transpiled version (2783L) is out of date.
1 | static int stepMax(int max, Steppable s) {
|
2 | if (s == null) ret 0; |
3 | int steps = 0; |
4 | while ping (max-- > 0 && s.step()) ++steps; |
5 | ret steps; |
6 | } |
7 | |
8 | static int stepMax(Steppable s, int max) {
|
9 | ret stepMax(max, s); |
10 | } |
Began life as a copy of #1024992
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031754 |
| Snippet name: | stepMax |
| Eternal ID of this version: | #1031754/6 |
| Text MD5: | f84115168c89b95e9ae47df29a965790 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-22 20:27:31 |
| Source code size: | 222 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 406 / 569 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |