ClojureDocs

Nav

Namespaces

core.async
core.logic
data.csv
spec.alpha
tools.build
  • clojure
tools.deps

when-first

clojure.core

Available since 1.0 (source) Clojure/JVMClojureScriptbabashka
  • (when-first bindings & body)
bindings => x xs
 Roughly the same as (when (seq xs) (let [x (first xs)] body)) but xs is evaluated only once