Created
October 5, 2018 19:08
-
-
Save devn/edef1544815cfe2854a83ba257275fc9 to your computer and use it in GitHub Desktop.
Revisions
-
devn created this gist
Oct 5, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ (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?))