Created
October 5, 2018 19:08
-
-
Save devn/edef1544815cfe2854a83ba257275fc9 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
(ns coinstar | |
(:import [java.time LocalDate])) | |
(def working? (constantly false)) | |
(defn go | |
"Provided a `who` and `when`, returns the state of | |
a coinstar `when` the `who` goes to it. | |
Example: | |
(coinstar/go :i (LocalDate/now)) => false" | |
[who when] | |
{:pre [(and (= who :i) | |
(instance? java.time.LocalDate when))]} | |
(working?)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment