Libraryless. Click here for Pure Java version (3403L/19K).
1 | sclass WithCount<A> extends Var<A> { |
2 | int count; |
3 | |
4 | *() {} |
5 | *(int *count, A value) { super(value); } |
6 | *(A value) { super(value); } |
7 | *(A value, int *count) { super(value); } |
8 | |
9 | int count() { ret count; } |
10 | |
11 | toString { ret super.toString() + appendBracketed(n2(count)); } |
12 | } |
Began life as a copy of #1026686
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1031842 |
Snippet name: | WithCount [int] |
Eternal ID of this version: | #1031842/1 |
Text MD5: | ee79c48bc8b0df5c511d692e0e79420f |
Transpilation MD5: | 2f1c0e683d0d5b2882e8ad1b5b7b69cb |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-07-16 05:17:58 |
Source code size: | 292 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 142 / 290 |
Referenced in: | [show references] |