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: lex
Type: ReadS String
Description:
Related: read, reads, show, shows

Example 1

Input: lex "ABC"

Output: [("ABC","")]

Example 2

Input: lex "ABC DEF GHI"

Output: [("ABC"," DEF GHI")]

Example 3

Input:

Output:

Example 4

Input:

Output: