ZVON > References > Haskell reference
| 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

Example 1

Input: elems (array (0,3) [(1,"A"),(2,"B"),(3,"D"),(0,"QQQ")])

Output: ["QQQ","A","B","D"]

Example 2

Input: elems (array (1,10) (zip [1..10] [5,9..100]))

Output: [5,9,13,17,21,25,29,33,37,41]




_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet




Related sites:
  • dotNet Slackers - Your latest resource for ASP.NET
  • Dotnet Spider - Outsourcing and Offshore software development in India
  • XML - Xselerator, XSL Editor, BizTalk Utilities, XML Tutorials, Learn XML
  • Planet Source Code - The largest public source code database on the Internet
UNLIMITED Web Hosting by HostDepartment Alojamiento Web UK Domain Names glossary for conference call answering service
MSN VoIP Internettelefonie Hosted Exchange, SDSL VoIP Internettelefonie AT VoIP Internettelefonie DE