1 | static int stdcmp(Number a, Number b) { |
2 | ret cmp(a, b); |
3 | } |
4 | |
5 | static int stdcmp(S a, S b) { |
6 | ret cmp(a, b); |
7 | } |
8 | |
9 | static int stdcmp(long a, long b) { |
10 | ret a < b ? -1 : a > b ? 1 : 0; |
11 | } |
12 | |
13 | static int stdcmp(O a, O b) { |
14 | ret cmp(a, b); |
15 | } |
Began life as a copy of #1001540
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
No comments. add comment
Snippet ID: | #1015441 |
Snippet name: | stdcmp function (standard compare) - theoretical synonym of cmp |
Eternal ID of this version: | #1015441/1 |
Text MD5: | fed97b267440630a5ee8db3a87aec00a |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-14 00:45:15 |
Source code size: | 247 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 355 / 399 |
Referenced in: | [show references] |