(rontolisp) docs
← Syntax and definition

let

(let [binding...] body...)

Evaluates the bindings in order, each seeing the ones before it (Clojure's let is sequential; it lowers to let*), then evaluates the body and answers its last value. Binding patterns destructure: a vector pattern binds positionally through the seq view -- then an optional & rest, then an optional :as name ending it, the oracle's grammar -- a map pattern through :keys/:syms/:strs (also :ns/keys, ::keys), explicit locals, :as and :or defaults, and nested patterns recurse (see Syntax for the patterns); malformed shapes are named refusals. A map pattern reads a seq as the map its keyword arguments stand for (seq-to-map-for-destructuring), a vector as itself.