Samuel Jaffe
|
51e734d7bd
Optional Stream - represents a series of computation steps where one or more steps may not return a value on a failure case. It provides two transformations 'map :: T -> R', and 'flatmap :: T -> optional<R>'. If the value in the stream is not present, the function provided to map/flatmap will not be invoked. In this manner, the end result of a chain will be either the computed value, or <absent> if any flatmap returns failure.
|
8 éve |