chickadee » srfi-189 » generation->maybe

generation->maybe objprocedure
generation->either obj fail-objs ...procedure

If obj is an end-of-file object, return Nothing / a Left of fail-objs. Otherwise, return obj wrapped in a Just/Right.

☞ The following procedures interface between the Maybe and Either protocols and the values protocol, which returns one or more values to represent success and zero values to represent failure.