There's a whole lot of ignorance going on in there.
Option is a monad. All monads are functors. The key characteristic of a functor is that you can map over it. So why does it surprise you to be using map with Option? The Scala docs…
We should be very very thankful for these questions. They differentiate the people that have really read around and understand what it is that we're doing in CS, and those that have just been to the lectures.
I don't get what your objection is? It's obviously a mini-essay question, a chance to show your opinions and reason about ideas. Seems good to me. Do you not like it because it's not a yes-no question? Welcome to…
There's a whole lot of ignorance going on in there.
Option is a monad. All monads are functors. The key characteristic of a functor is that you can map over it. So why does it surprise you to be using map with Option? The Scala docs…
We should be very very thankful for these questions. They differentiate the people that have really read around and understand what it is that we're doing in CS, and those that have just been to the lectures.
I don't get what your objection is? It's obviously a mini-essay question, a chance to show your opinions and reason about ideas. Seems good to me. Do you not like it because it's not a yes-no question? Welcome to…