Skip to content

Documentation on const function is wrong

It currently only says

Constant function

which is not only not informative (how am I supposed to use this function, some API examples would be nice), but actually wrong (const is not a constant function, const x is)

I suggest the following wording instead:

Returns a unary constant function (a function that returns the same value for all inputs) from the argument @a@.

Edited by Ben Gamari
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information