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

9
LINES

< > BotCompany Repo | #1023725 // NamedVar - Var + a name

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

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

1  
sclass NamedVar<A> extends Var<A> {
2  
  S name;
3  
  
4  
  *() {}
5  
  *(S *name) {}
6  
  *(S *name, A value) { super(value); }
7  
  
8  
  toString { ret or(name, "anonymous var") + "=" + super.toString(); }
9  
}

Author comment

Began life as a copy of #1003550

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: #1023725
Snippet name: NamedVar - Var + a name
Eternal ID of this version: #1023725/3
Text MD5: 1b28ede85c79b6b6636df4b1fa48e9d6
Transpilation MD5: 9ed2e77011784b60f8b0f4b345512386
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-28 18:31:18
Source code size: 197 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 246 / 679
Version history: 2 change(s)
Referenced in: [show references]