Libraryless. Click here for Pure Java version (36L/1K).
1 | static bool even(int i) { |
2 | ret (i & 1) == 0; |
3 | } |
4 | |
5 | static bool even(long i) { |
6 | ret (i & 1) == 0; |
7 | } |
8 | |
9 | static bool even(BigInt n) { |
10 | ret even(n.intValue()); |
11 | } |
Began life as a copy of #1004826
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: | #1007642 |
Snippet name: | even - is a number even? |
Eternal ID of this version: | #1007642/3 |
Text MD5: | 804166ddd6602f844977ab2fed696b37 |
Transpilation MD5: | ce2b14da5a374f903e1572c624dd1f7c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-12-09 15:02:25 |
Source code size: | 165 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 576 / 690 |
Version history: | 2 change(s) |
Referenced in: | [show references] |