- Facebookが開発した クエリ言語
- 今はGraphQL Foundationに移管されている
Moved to Shopify/graphql-design-tutorial
interface MyFunctor<A> {
fun myMap<B>(f: (A) -> B): MyFunctor<B>
}
class MyFunctorList<A>(val list: List<A>) : MyFunctor<A>, List<A> by list {
override fun myMap<B>(f: (A) -> B): MyFunctor<B>
= MyFunctorList(list.map(f))
- 更新
2023-10-04
- 作者
@voluntas
- バージョン
2023.2
- URL
class Foo {
type L[A] = Either[String, A]
foo[L](bar)
}
↓
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package datatypesalacarte | |
import scala.language.higherKinds | |
trait Functor[F[_]] { | |
def map[A, B](fa: F[A])(f: A => B): F[B] | |
} |
- versionは0.7a
- scalaz-streamではなくscalaz-concurrentにあるクラス
- scalaz-streamは、これと
Task
にかなり依存してるので、まずはこれらを理解することが重要
NewerOlder