Libraryless. Click here for Pure Java version (2298L/14K).
1 | sclass WithFeedback<A> extends Var<A> { |
2 | S feedback; |
3 | |
4 | *() {} |
5 | *(A value) { super(value); } |
6 | *(S *feedback, A value) { super(value); } |
7 | |
8 | toString { |
9 | if (empty(feedback)) ret super.toString(); |
10 | ret super.toString() + "\n" + |
11 | indentx("[Feedback: " + feedback + "]"); |
12 | } |
13 | } |
Began life as a copy of #1026688
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: | #1026737 |
Snippet name: | WithFeedback |
Eternal ID of this version: | #1026737/3 |
Text MD5: | 1651d1e1071d8404f1f3c19416e7520c |
Transpilation MD5: | b4c361516cf98a2dcc2f960b7a6456e2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-19 21:38:22 |
Source code size: | 302 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 210 / 564 |
Version history: | 2 change(s) |
Referenced in: | [show references] |