Created
May 6, 2019 04:18
-
-
Save akkartik/2c87e819ce7a73704fcdbfcd49db7f13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(mac every (n . body) | |
`(thread | |
(while t | |
(sleep ,n) | |
,@body))) | |
;; try it out | |
; print a heartbeat every second | |
(every 1 (prn ".")) | |
; fizzbuzz | |
(every 3 (prn "fizz")) | |
(every 5 (prn "buzz")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment