Package: alexandria

Macro nth-value-or

Lambda List

nth-value-or (nth-value &body forms)


Evaluates form arguments one at a time, until the nth-value returned by one of the forms is true. It then returns all the values returned by evaluating that form. If none of the forms returns a true nth value, the return value is nil.