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

8
LINES

< > BotCompany Repo | #1025667 // WithToString - wrap an object with a different string representation

JavaX fragment (include)

1  
srecord WithToString<A> extends Var<A> {
2  
  S string;
3  
  
4  
  *() {}
5  
  *(A a, S *string) { super(a); }
6  
  
7  
  toString { ret string; }
8  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1025667
Snippet name: WithToString - wrap an object with a different string representation
Eternal ID of this version: #1025667/1
Text MD5: 737f6f8cd4487d5cde0b9444afcf7b61
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-12 21:50:44
Source code size: 137 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 258 / 559
Referenced in: [show references]