Skip to content

Instantly share code, notes, and snippets.

@devn
Created October 5, 2018 19:08
Show Gist options
  • Save devn/edef1544815cfe2854a83ba257275fc9 to your computer and use it in GitHub Desktop.
Save devn/edef1544815cfe2854a83ba257275fc9 to your computer and use it in GitHub Desktop.
(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