| 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: | Array |
|---|---|
| Function: | elems |
| Type: | Ix a => Array a b -> [b] |
| Description: | The functions indices, elems, and assocs, when applied to an array, return lists of the indices, elements, or associations, respectively, in index order. |
| Related: | assocs, bounds, indices |
Input: elems (array (0,3) [(1,"A"),(2,"B"),(3,"D"),(0,"QQQ")])
Output: ["QQQ","A","B","D"]
Input: elems (array (1,10) (zip [1..10] [5,9..100]))
Output: [5,9,13,17,21,25,29,33,37,41]