typesafe-monads/monads/functor.py
Correl Roush c71b9d6ff6 Rename methods
unit -> pure
fmap -> map
2018-10-11 21:06:23 -04:00

10 lines
245 B
Python

from __future__ import annotations
from typing import Any, Callable, Generic, TypeVar
T = TypeVar("T")
S = TypeVar("S")
class Functor(Generic[T]):
def map(self, function: Callable[[T], S]) -> Functor[S]:
raise NotImplementedError