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

7
LINES

< > BotCompany Repo | #1030574 // neg

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

Transpiled version (91L) is out of date.

1  
static Pt neg(Pt p) {
2  
  ret p ?: Pt(-p.x, -p.y);
3  
}
4  
5  
meta-for int also as double {
6  
  static int neg(int i) { ret -i; }
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030574
Snippet name: neg
Eternal ID of this version: #1030574/3
Text MD5: f51e42b05191016628f64689f596697f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-19 04:25:40
Source code size: 125 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 197 / 295
Version history: 2 change(s)
Referenced in: [show references]