Email or username:

Password:

Forgot your password?
Top-level
russ

@plexus an interesting idea! I love sets as functions to the point where i hardly use `=` anymore.

2 comments
Arne Brasseur

@russmatney it's so much more flexible and clear, compare:

#(or (= :test (:env %)) (= :dev (:env %))
(comp #{:test :dev} :env)
russ

@plexus yep! Especially for multiple values as you showed. I love forms like this that make things easier to change (adding another value to this set literal vs another whole equality fn call)

Go Up