static bool eq(Object a, Object b) { return a == b || a != null && b != null && a.equals(b); } ifclass Symbol // a little kludge for stuff like eq(symbol, "$X") static bool eq(Symbol a, S b) { ret eq(str(a), b); } endif
Began life as a copy of #1001026
download show line numbers debug dex
Travelled to 19 computer(s): aoiabmzegqzx, ayivmpnvhhik, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, jozkyjcghlvl, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vujiipfktnfq, whxojlpjdney, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1007768 |
Snippet name: | faster eq function (if you never compare a BigInt to an Int or Long), LIVE |
Eternal ID of this version: | #1007768/9 |
Text MD5: | 4dd8572426b53bb6894fd80e1336bbe3 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-13 11:46:23 |
Source code size: | 233 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 404 / 1143 |
Version history: | 8 change(s) |
Referenced in: | #1006654 #1007765 #1022398 |
Formerly at http://tinybrain.de/1007768 & http://1007768.tinybrain.de