Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/FizzBuzz/Slope/fizzbuzz.slope
Normal file
8
Task/FizzBuzz/Slope/fizzbuzz.slope
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(define fizz-buzz
|
||||
(lambda (x)
|
||||
(define ret "")
|
||||
(if (zero? (% x 3))(set! ret (append ret "fizz")))
|
||||
(if (zero? (% x 5))(set! ret (append ret "buzz")))
|
||||
(if (equal? ret "") (set! ret (append ret x)))
|
||||
ret))
|
||||
(apply display-lines (list-join (map fizz-buzz (range 100 1))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue