(when-let pat val ..body) pat: a pattern val: any form body: zero or more forms
M
Evaluates some forms when a value matches a pattern.
Evaluates val
and attempts to match it against pat
.
If it matches, evaluates body
(with all of the variable bindings implied by pat
)
and returns its result. Otherwise, returns #n
.