본문 바로가기
개발/typescript, web

[21-06-18 개인스터디] fp-ts Eq 알아보기 + combinators pattern, contramap

by 꾸루루 2021. 6. 19.

 

 

 

reference)

contravariant

https://hackage.haskell.org/package/contravariant-1.4.1/docs/Data-Functor-Contravariant.html

 

Data.Functor.Contravariant

Replace all locations in the output with the same value. The default definition is contramap . const, but this may be overridden with a more efficient version.

hackage.haskell.org

combinators pattern 

https://wiki.haskell.org/Combinator

 

Combinator - HaskellWiki

There are two distinct meanings of the word "combinator" in common usage. The first is a narrow, technical meaning, namely: A function or definition with no free variables. A "function with no free variables" is a pure lambda-expression that refers only to

wiki.haskell.org

contramap

https://medium.com/@stephaneledorze/the-contravariant-functor-a7ae93e2eae0