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

15
LINES

< > BotCompany Repo | #1001540 // stdcompare function (standard compare) - theoretical synonym of cmp

JavaX fragment (include)

static int stdcompare(Number a, Number b) {
  ret cmp(a, b);
}

static int stdcompare(S a, S b) {
  ret cmp(a, b);
}

static int stdcompare(long a, long b) {
  ret a < b ? -1 : a > b ? 1 : 0;
}

static int stdcompare(O a, O b) {
  ret cmp(a, b);
}

download  show line numbers  debug dex  old transpilations   

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

Comments [hide]

ID Author/Program Comment Date
1206 stefan TODO: merge with "cmp" 2016-01-23 20:21:16

add comment

Snippet ID: #1001540
Snippet name: stdcompare function (standard compare) - theoretical synonym of cmp
Eternal ID of this version: #1001540/1
Text MD5: e1b7ec4690db33cf9e6c75670693ede8
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-13 04:02:36
Source code size: 263 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 1312 / 2039
Referenced in: #1002041 - cmp function (standard compare)
#1002427 - Accellerating 629 (SPIKE)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1010250 - stdCompare function (standard compare) - theoretical synonym of cmp
#1015441 - stdcmp function (standard compare) - theoretical synonym of cmp
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)