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: dropWhile
Type: (a -> Bool) -> [a] -> [a]
Description: creates a list from another one, it inspects the original list and takes from it its elements from the moment when the condition fails for the first time till the end of the list
Related: drop, head, init, last, tail

Example 1

Input: dropWhile (<3) [1,2,3,4,5]

Output: [3,4,5]

Example 2

Input: dropWhile even [2,4,6,7,9,11,12,13,14]

Output: [7,9,11,12,13,14]

Example 3

Input: dropWhile (\x -> 6*x < 100) [1..20]

Output: [17,18,19,20]

Example 4

Input: dropWhile ('w'>) "hello, world"

Output: "world"




_____________________________________________
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