Newer
Older
package foldfunc
trait Functor[F[_]]:
extension [A](fa: F[A])
def map[B](f: A => B): F[B]
//try to write the signature yourself instead of using the IDEs auto-implement
//uncomment and implement:
//given Functor[Option] with
//...