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

Module: Prelude
Function: enumFromThenTo
Type: Enum a => a -> a -> a -> [a]
Class: Enum
Description: returns an array of members of an enumeration starting with the first argument and finishing with the third one in distances determined by the second one, it is equvalent to syntax.
Related: enumFrom, enumFromThen, enumFromTo, fromEnum, pred, succ, toEnum

Example 1

Input: enumFromThenTo 'A' 'C' 'M'

Output: "ACEGIKM"

Example 2

Input: enumFromThenTo 'A' 'C' 'N'

Output: "ACEGIKM"

Example 3

Input: enumFromThenTo 3 6 11

Output: [3,6,9]

Example 4
Program source: 
data XXX = AA|BB|CC|DD|EE|FF|GG deriving (Enum, Show)

Input: enumFromThenTo AA CC FF

Output: [AA,CC,EE]




_____________________________________________
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
answering service water softener MSN Alojamiento Web UNLIMITED Web Hosting by HostDepartment
VoIP Internettelefonie Hosted Exchange, SDSL VoIP Internettelefonie AT VoIP Internettelefonie DE