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

13
LINES

< > BotCompany Repo | #1026688 // WithReasoning

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

Libraryless. Click here for Pure Java version (2298L/14K).

sclass WithReasoning<A> extends Var<A> {
  S reasoning;
  
  *() {}
  *(A value) { super(value); }
  *(A value, S *reasoning) { super(value); }
  
  toString {
    if (empty(reasoning)) ret super.toString();
    ret super.toString() + "\n" +
      indentx("[Reasoning: " + reasoning + "]");
  }
}

Author comment

Began life as a copy of #1026686

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026688
Snippet name: WithReasoning
Eternal ID of this version: #1026688/3
Text MD5: 20abd73fe2321fe4806621014e271a33
Transpilation MD5: 2ee165042872b5429da97a79e91d0c91
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-19 00:33:13
Source code size: 308 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 276 / 656
Version history: 2 change(s)
Referenced in: [show references]