danielnarey/elm-toolkit/6.0.0

NOTE: this package is not compatible with Elm 0.19.1

Toolkit.Compare

isInRange : ( comparable, comparable ) -> comparable -> Bool

Given a pair of values defining an interval and a test value, returns True if the test value falls within the interval, including its endpoints

isBetween : ( comparable, comparable ) -> comparable -> Bool

Given a pair of values defining an interval and a test value, returns True if the test value falls strictly between the endpoints of the interval, such that a test value equal to one of the endpoints will return False