Comment
Comment by premium-concern
Consider two functions (excuse my Scala):
With Optional, you receive different results depending on whether you call map twice, or combine the functions first:
This is incorrect and violates the functor law.
Be the first to share your thoughts.