Functor

object Functor

Instances and static functions for meow.data.Functor

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

inline def derived[F[_]](using m: K1[F]): Functor[F]
def map[F[_]]: [A, B] => (f: A => B) => Functor[F] => F[A] => F[B]

Prefix static version of meow.data.Functor#fmap

Prefix static version of meow.data.Functor#fmap

Example
map[Option](f)(Option(1))

Givens

Givens

given given_Functor_Const[Y[_], Z]: Functor[Const[Y[Z]]]
given given_Functor_Either[E]: Functor[[_] =>> Either[E, _$7]]
given given_Functor_Function[R]: Functor[[_] =>> R => _$5]
given given_Functor_Option: Functor[[A] =>> Option[A]]
given given_Functor_Tuple2[R]: Functor[[_] =>> (R, _$6)]

Extensions

Extensions

extension (a: A)
@targetName("voidRight")
def <$[F[_], A, B](fb: F[B])(using Functor[F]): F[A]

Void right, pair of meow.data.Functor#$&gt;

Void right, pair of meow.data.Functor#$&gt;

Example
2 `<$` Option(3) == Option(2)
extension (f: A => B)
@targetName("fmap")
def <$>[F[_], A, B](fa: F[A])(using Functor[F]): F[B]

Infix syntax for meow.data.Functor#fmap

Infix syntax for meow.data.Functor#fmap

Example
(f compose g) `<$>` fa  == (map[Option](f) compose map[Option](g))(fa)