chickadee » srfi-189 » maybe-ref

maybe-ref maybe failure #!optional successprocedure

If maybe is a Just, tail-calls the procedure success on the values of its payload and returns the result. Otherwise, it tail-calls the procedure failure on no arguments and returns the result. The default value of success is values.