YAPC::EU 2018 Glasgow Update!
This commit is contained in:
parent
22f33d4004
commit
4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions
8
Task/Even-or-odd/K/even-or-odd.k
Normal file
8
Task/Even-or-odd/K/even-or-odd.k
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
oddp: {:[x!2;1;0]} /Returns 1 if arg. is odd
|
||||
evenp: {~oddp[x]} /Returns 1 if arg. is even
|
||||
|
||||
Examples:
|
||||
oddp 32
|
||||
0
|
||||
evenp 32
|
||||
1
|
||||
Loading…
Add table
Add a link
Reference in a new issue