Another solution (needs import of Control.Applicative
):
between min max = liftA2 (&&) (min <) (max >)
1
solved How to write this function in point-free style?
Another solution (needs import of Control.Applicative
):
between min max = liftA2 (&&) (min <) (max >)
1
solved How to write this function in point-free style?