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

3
LINES

< > BotCompany Repo | #1003912 // intadd - convert 2 objects of unknown type to int and add them

JavaX fragment (include)

static int intadd(O a, O b) {
  ret toInt(a) + toInt(b);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003912
Snippet name: intadd - convert 2 objects of unknown type to int and add them
Eternal ID of this version: #1003912/1
Text MD5: 8bcfdb2d4858c78d9fa99ded61f50792
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-30 16:39:13
Source code size: 60 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 435 / 421
Referenced in: [show references]