between?

<=>

check if given value is between the given values (inclusive)


Parameters

between? value :any
         rangeFrom :any
         rangeTo :any

Returns

  • :logical

Examples

copy
between? 1 2 3 ; => false between? 2 0 3 ; => true between? 3 2 3 ; => true 1 <=> 2 3 ; => false 2 <=> 0 3 ; => true 3 <=> 2 3 ; => true

Related