Skip to content

clojure.core/when-first

View this page on ClojureDocs

Type: macro Added: Clojure 1.0 Examples: 3 Runnable: 2
([bindings & body])

bindings => x xs

Roughly the same as (when (seq xs) (let [x (first xs)] body)) but xs is evaluated only once

Examples

by gstamp on
by peterwestmacott on . May have evaluation errors.
by reborg on

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.