Transpiled version (2117L) is out of date.
1 | sclass Scored<A> extends Var<A> { |
2 | float score; |
3 | |
4 | *() {} |
5 | *(A a, float score) { super(a); this.score = score; } |
6 | *(A a, double score) { super(a); this.score = (float) score; } |
7 | |
8 | float score() { ret score; } |
9 | |
10 | toString { |
11 | ret toIntPercent(score) + "%: " + str(get()); |
12 | } |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 20 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, nazvggbglmsf, omdjrrnzbjjv, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1015268 |
Snippet name: | Scored - float-scored value. don't put null in here |
Eternal ID of this version: | #1015268/10 |
Text MD5: | 174d18eec93d4da8c23bc91634609e6d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-11-06 20:52:40 |
Source code size: | 299 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 513 / 3318 |
Version history: | 9 change(s) |
Referenced in: | [show references] |