query
On this page

const

lib.trivial.const



The constant function Ignores the second argument. If called with only one argument, constructs a function that always returns a static value.

Example

let f = const 5; in f 10
=> 5

Type

const :: a -> b -> a

Arguments

  • [x] Value to return
  • [y] Value to ignore

Noogle also knows

Aliases