Skip to main content
Home
Docs
Courses
Workshops
Jobs
Podcast
Sign in
Docs
Reference
ClojureScript
cljs.core
constantly
constantly
function
v1.7
cljs.core/constantly
Available in:
BB
CLJ
CLJS
(
constantly
[
x
]
)
Returns a function that takes any number of arguments and returns x.
Examples
Sign in to contribute
Code
Platforms
Clojure
ClojureScript
Babashka
Submit
Cancel
No examples yet. Be the first to add one!
Categories
Functions › Creating
See Also
comp
defn
defn-
fn
identity
partial
← cons
contains? →
All
⌘1
Clojure
⌘2
ClojureScript
⌘3
Babashka
⌘4