You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.
not really that important but the implementation of gets could be cleaner.
would make more sense to be implemented as
(defn gets
"Returns the first value mapped to key found in the provided maps."
[k & maps]
(->> (map #(get % k) maps)
(remove nil?)
first))
As you are mapping and filtering nil will never be returned meaning that the threading will continue (= (list) (some->> (map identity []))). If get is used then the call to first will either be a value or nil.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
friend/src/cemerick/friend/util.clj
Line 4 in 12c5b66
not really that important but the implementation of
gets
could be cleaner.would make more sense to be implemented as
As you are mapping and filtering
nil
will never be returned meaning that the threading will continue(= (list) (some->> (map identity [])))
. Ifget
is used then the call tofirst
will either be a value ornil
.The text was updated successfully, but these errors were encountered: