ZVON > References > Haskell reference
| Indexes | Syntax | Prelude | Ratio | Complex | Numeric | >> Ix << | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Ix
Function: inRange
Type: Ix a => (a,a) -> a -> Bool
Class: Ix
Description: returns True if a particular subscript lies in the range defined by a bounding pair.
Related:

Example 1

Input: inRange (1,5) 3

Output: True

Example 2

Input: inRange (1,5) 12

Output: False

Example 3

Input: inRange ((1,5),(10,12)) (7,8)

Output: True