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: range
Type: Ix a => (a,a) -> [a]
Class: Ix
Description: The range operation enumerates all subscripts.
Related:

Example 1

Input: range (3,6)

Output: [3,4,5,6]

Example 2

Input: range ((1,3),(2,4))

Output: [(1,3),(1,4),(2,3),(2,4)]

Example 3

Input: range ('e','i')

Output: "efghi"

Example 4

Input: range (('a','b'),('c','d'))

Output: [('a','b'),('a','c'),('a','d'),('b','b'),('b','c'),('b','d'),('c','b'),('c','c'),('c','d')]