ZVON > References > Haskell reference |
Intro / Search / ZVON |
| Indexes | >> Syntax << | Prelude | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random |
Name | do expressions |
---|---|
Description | A do expression provides a more conventional syntax for monadic programming. |
Related: |
Program source: aaa = do putStr "x: " l <- getLine return (words l)
Input: aaa
Output: x:
Input: 3 4 5 6
Output: ["3","4","5","6"]