Skip to content

Instantly share code, notes, and snippets.

@mwmitchell
Created July 21, 2011 13:51
Show Gist options
  • Select an option

  • Save mwmitchell/1097228 to your computer and use it in GitHub Desktop.

Select an option

Save mwmitchell/1097228 to your computer and use it in GitHub Desktop.
(defn string-or-nil? [x] (or (string? x) (nil? x)))
hotel => (contains {:lat number? :lng number? :name string?
:address (contains {:line1 string-or-nil?
:line2 string-or-nil?
:city string?
:region string?
:postal_code string?
:country_code string?
:country_name string?})
:aka map?
:udicode string?})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment