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: const
Type: a -> b -> a
Description: constant function
Related:

Example 1

Input: const 12 3

Output: 12

Example 2

Input: const 12 (3/0)

Output: 12