15
LINES
< > BotCompany Repo | #1001540
// stdcompare function (standard compare) - theoretical synonym of cmp
JavaX fragment (include)
1 | static int stdcompare(Number a, Number b) {
|
2 | ret cmp(a, b);
|
3 | }
|
4 |
|
5 | static int stdcompare(S a, S b) {
|
6 | ret cmp(a, b);
|
7 | }
|
8 |
|
9 | static int stdcompare(long a, long b) {
|
10 | ret a < b ? -1 : a > b ? 1 : 0;
|
11 | }
|
12 |
|
13 | static int stdcompare(O a, O b) {
|
14 | ret cmp(a, b);
|
15 | }
|
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
| 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: |
1683 / 2423 |
| Referenced in: |
[show references] |