3 ms·
One new thing to me about Clojure. Check out this one line of Clojure code: (if-let [user (@users email)] //do stuff And the equivalent in most other languag
by va_coder 17y ago
One new thing to me about Clojure.
Check out this one line of Clojure code:
(if-let [user (@users email)] //do stuff
And the equivalent in most other languages:
for (e in users) {
if (e.email == email_passed_in) {
user = e
}
}
if (user) { //do stuff}