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).

sclass NamedVar<A> extends Var<A> {
  S name;
  
  *() {}
  *(S *name) {}
  *(S *name, A value) { super(value); }
  
  toString { ret or(name, "anonymous var") + "=" + super.toString(); }
}

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: 245 / 676
Version history: 2 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)