3 ms·
Trivia: You can name fns: (map (fn first-or-last [x] (or (first x) (last x)) my-seq) (Of course the name has no semantic effects as you can'
by fulafel 6y ago
Trivia: You can name fns:
(map (fn first-or-last [x]
(or (first x) (last x))
my-seq)
(Of course the name has no semantic effects as you can't refer to it from code, but it's there in debugging / stack traces and serves as a comment for the reader).
- didibus 6y agoActually you can refer to the name inside the anonymous function for self-recursion I believe.