Libraryless. Click here for Pure Java version (9623L/56K).
1 | svoid stepMaxWithPrintIndentedStruct(long maxSteps, Steppable s) {
|
2 | if (s == null) ret; |
3 | S struct = null; |
4 | long steps = 0; |
5 | do {
|
6 | if (steps++ > maxSteps) break; |
7 | print(struct = indentedStruct(s)); |
8 | } while (s.step()); |
9 | S struct2 = indentedStruct(s); |
10 | if (!eq(struct, struct2)) print(struct2); |
11 | } |
12 | |
13 | svoid stepMaxWithPrintIndentedStruct(Steppable s, long maxSteps) {
|
14 | stepMaxWithPrintIndentedStruct(maxSteps, s); |
15 | } |
Began life as a copy of #1035384
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035390 |
| Snippet name: | stepMaxWithPrintIndentedStruct |
| Eternal ID of this version: | #1035390/3 |
| Text MD5: | f677da00d0c986f3f1a5328d1322a732 |
| Transpilation MD5: | c6f5ec4472a8d15a9f0d7e6d4677a6cb |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-05-05 15:57:58 |
| Source code size: | 438 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 337 / 432 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |