- 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))| 更新: | 2024-05-20 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2024.1 |
| URL: | https://voluntas.github.io/ |
class Foo {
type L[A] = Either[String, A]
foo[L](bar)
}↓
This file contains hidden or 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
