I'm writing some code using Reagent, and part of that involves writing some callbacks and state manipulation.
A few of those places will invoke functions with default arguments, and I don't want to do anything with them. I just want to return a constant value.
When I use something like #(true)
, for instance, I'll get an exception, and I have to write (fn [_] true)
. Is there a way for the lambda shorthand to know it's getting a parameter and not using it?