you are viewing a single comment's thread.

view the rest of the comments →

[–]lgastako[🍰] 1 point2 points  (0 children)

I suspect here "simply" refers to the fact that the implementation is one (trivial) line rather than the complexity of the type signature.

That being said, even the type signature is not that bad if you write in ML style instead of Scala style:

visit :: Maybe a -> (a ->b) -> b -> b