def map[B](f: A => B): F[B] and def mapId(f: A => A): F. Can anyone come up with an example where having these be separate methods results in code duplication? I suspect there's no such example, but it might be that I'm not thinking hard enough. Someone prove me wrong!
1 comment:
I suggest posting this to the Scala Debate list for a broader discussion?
Post a Comment