4.1: Full Blown Applicative
This release fleshes out the rest of the Applicative implementations for Optional
and Array
. This adds two new operators to the mix for each type:
<*
performs an applicative operation, discarding the right hand value*>
performs an applicative operation, discarding the left hand value
We're also adding full implementations for Alternative for both types:
<|>
performs an alternative operationempty
constructs an empty value (basically the dual ofpure
)Optional
now has an.or
instance method that acts as a named version of<|>
.