Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Leap-year/Arc/leap-year-1.arc
Normal file
3
Task/Leap-year/Arc/leap-year-1.arc
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(= leap? (fn (year)
|
||||
(if (and (is 0 (mod year 4)) (isnt 0 (mod year 100))) year
|
||||
(unless (< 0 (+ (mod year 100) (mod year 400))) year))))
|
||||
2
Task/Leap-year/Arc/leap-year-2.arc
Normal file
2
Task/Leap-year/Arc/leap-year-2.arc
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
(map [leap? _] '(1900 1904 2000 2019 2020 2100))
|
||||
;; => '( 1904 2000 2020 )
|
||||
Loading…
Add table
Add a link
Reference in a new issue