#134

90 views
Skip to first unread message

Madhu Patel

unread,
Jul 19, 2017, 3:37:03 PM7/19/17
to 4Clojure
(fn [x] (= x nil))

thats what i have probably completely wrong, any suggestions?

Leif

unread,
Jul 21, 2017, 1:25:26 AM7/21/17
to 4Clojure
Hi, Madhu.

First problem: your function takes the wrong number of arguments.  It should look like

(fn [k m] ...)  ;; "function... given a key and map"

I suggest looking at the functions at https://clojure.org/api/cheatsheet under Maps / Examine.
Then you can try them out in the REPL and get a feeling of how they work.  At that point,
you should be able to solve the problem.

Happy hacking,
Leif
Reply all
Reply to author
Forward
0 new messages