Libraryless. Click here for Pure Java version (10237L/59K).
1 | static <A> A printIndentedStructIf(bool b, A a) { |
2 | if (b) printIndentedStruct(a); |
3 | ret a; |
4 | } |
5 | |
6 | static <A> A printIndentedStructIf(bool b, S s, A a) { |
7 | if (b) printIndentedStruct(s, a); |
8 | ret a; |
9 | } |
10 | |
11 | static <A> A printIndentedStructIf(bool b, S s, IF0<structure_Data> makeStructureData, A a) { |
12 | if (b) |
13 | if (makeStructureData != null) |
14 | printIndentedStruct(s, a, makeStructureData!); |
15 | else |
16 | printIndentedStruct(s, a); |
17 | |
18 | ret a; |
19 | } |
Began life as a copy of #1027136
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035070 |
Snippet name: | printIndentedStructIf |
Eternal ID of this version: | #1035070/5 |
Text MD5: | bdafe3243cca176c80782510245ef731 |
Transpilation MD5: | e184d67bbf84d6e44b1ecaea85b123e6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-05-01 16:10:34 |
Source code size: | 466 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 132 / 198 |
Version history: | 4 change(s) |
Referenced in: | [show references] |