Fork me on GitHub

Im stuck at chapter4 so far I have this :

; Write a function, validate, which will check that :name and :glitter-index are
; present when you append. The validate function should accept two arguments: 
; a map of keywords to validating functions, similar to conversions, and the
; record to be validated.
(def validation {:name validate-name
                  :glitter-index validate-index})

(defn validate
  [validations suspects]
  ((get validations suspects)))
am I on the right path here ?