Hello Stephen,
Couple of comments about code:
Instead of not nil? you can use some? since clojure 1.6:
user=> (doc some?)
-
clojure.core/some?
([x])
Returns true if x is not nil, false otherwise.
str/split and get by 0 may result in error:
user=> (str/split ":" #":")
[]
Hello everyone,
I just wrote my first ring middleware (I'm pretty much a newbie to
functional programming and Clojure in general), and I'd appreciate if
someone wants to give me some tips or constructive criticism (and it can
be off-list as well).
The goal is to enable per-file-type browser