Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

19
LINES

< > BotCompany Repo | #1035070 // printIndentedStructIf

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (10237L/59K).

static <A> A printIndentedStructIf(bool b, A a) {
  if (b) printIndentedStruct(a);
  ret a;
}

static <A> A printIndentedStructIf(bool b, S s, A a) {
  if (b) printIndentedStruct(s, a);
  ret a;
}

static <A> A printIndentedStructIf(bool b, S s, IF0<structure_Data> makeStructureData, A a) {
  if (b)
    if (makeStructureData != null)
      printIndentedStruct(s, a, makeStructureData!);
    else
      printIndentedStruct(s, a);
      
  ret a;
}

Author comment

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: 131 / 195
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)