allow constant values to be returned from f in flatMap