ZVON > References > Haskell reference |
Intro / Search / ZVON |
| 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: |
Input: range (3,6)
Output: [3,4,5,6]
Input: range ((1,3),(2,4))
Output: [(1,3),(1,4),(2,3),(2,4)]
Input: range ('e','i')
Output: "efghi"
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')]