-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
26/32 'a nil key' #25
Comments
:) hi here is the |
Hi, So, something is missing in this one
My answer (& I find that (the) [other|previous] answer answers other query) is ;; (also got that it's just too close to literals but still under [training|beginner]
;; purposes though I'm currently unable of testing the first condition of the exercise,
;; the `and`
;; for whether or not
;; the given `key` exist in the given `coll` bit ) |
OK I found this another answer: (fn [%1 %2] (and (contains? %2 %1) (nil? (%2 %1))))` Lessons I got now onward:
To DoI still do not know how-to these other solutions: (fn [a b] (nil? (b a 0))) ;; posted above or this another one, work: #(nil?(%2 %1 0)) Any explanation would be so greatly appreciated. |
hi @touxstone , thanks for reaching out. that's a tricky one :) It should return true if two things are true. That the collection
I hope this helps if not please let me know I'll elaborate as much as I can. |
Hi, @ertugrulcetin just a short reply ;; Though, I'd highlight (got it in my priv notes) this exercise as:
;; smart usage of `the default value functionality` e.g. for `get`
;; (& probably some other primitive functions) |
I for the live of me don't understand what the assignment is about, please help :)
The text was updated successfully, but these errors were encountered: