chickadee » srfi-189 » either-map

maybe-map proc maybeprocedure
either-map proc eitherprocedure

Monadic map. If maybe/either is a Just/Right, applies proc to the payload values and wraps the returned values as a Just/Right; otherwise returns maybe/either.