Hacker News new | past | comments | ask | show | jobs | submit login

Use destructuring to pull the needed values out of the ring request. For example:

(defn login [{{:keys [email password]} :params session :session}] ...)

Also remember as well as the :keys special form you have :strs and :syms.

https://gist.github.com/john2x/e1dca953548bfdfb9844




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: