Search plugin
Manual
haskell.org
set:stackage
set:installed
package:base
category:Prelude
license:BSD-3-Clause
const -is:module -is:exact -is:exact -is:exact is:exact
Packages
base
const
:: a -> b -> a
base
Prelude
Data.Function
const x
is a unary function which evaluates to
x
for all inputs.
>>> const 42 "hello" 42
>>> map (const 42) [0..3] [42,42,42,42]