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

Module: Maybe
Function: catMaybes
Type: [Maybe a] -> [a]
Description: creates a list of Just values from a Maybe list
Related:

Example 1
Program source: 

a = [(1,'A'),(2,'B'),(3,'C')]

Input: catMaybes [lookup 0 a, lookup 1 a, lookup 3 a, lookup 12 a]

Output: "AC"

Example 2
Program source: 

b = [(1,11),(2,22),(3,33)]

Input: catMaybes [lookup 0 b, lookup 1 b, lookup 3 b, lookup 12 b]

Output: [11,33]




_____________________________________________
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
Domain Names VoIP Internettelefonie DSL, SDSL, ADSL UNLIMITED Web Hosting by HostDepartment conference call service
answering service