Why there is no Functor instance for Array in Scalaz

It seems to scalazprovide an instance Functorfor List, but does not provide it for Array(or Seq).

scala> val fa = Functor[Array]
<console>:17: error: could not find implicit value for parameter F: scalaz.Functor[Array]
       val fa = Functor[Array]
                       ^
scala> val fl = Functor[List]
fl: scalaz.Functor[List] = scalaz.std.ListInstances$$anon$1@20c4b59

scala> val fl = Functor[Seq]
<console>:17: error: could not find implicit value for parameter F: scalaz.Functor[Seq]
       val fl = Functor[Seq]
                       ^

Why? Are they functors?

+4
source share
1 answer

Scala , Functor s. " " . , Array , Functor . Seq, , , , "" . , Seq , , , - ?

+6

Source: https://habr.com/ru/post/1649803/


All Articles