if-let

宏

(if-let binding)

(if-let [name expr] then else?) — evaluates expr once; non-nil

binds it to name and evaluates then; otherwise evaluates else,

or nil when the else branch is absent. The binding must be a

two-element vector; the name slot accepts a destructuring

pattern. Same non-nil boundary as when-let.