Name

constantly

Usage

function

Syntax

(constantly value)

Description

Returns a function accepting arbitrary arguments that always returns value.

user 1 > (def f12 (constantly 12))
it: f12
user 2 > (f12 3 4 5)
it: 12