I'm trying to understand Ramda docs so I looked up what a functor is here, but what is the ~>
in this mean?
map :: Functor f => f a ~> (a -> b) -> f b
I'm trying to understand Ramda docs so I looked up what a functor is here, but what is the ~>
in this mean?
map :: Functor f => f a ~> (a -> b) -> f b
It's already written there :
Type signature notation
~> (squiggly arrow) Method type constructor. When a function is a property of an Object, it is called a method. All methods have an implicit parameter type - the type of which they are a property. a ~> a -> a is a type satisfied by methods on Objects of type a which take a type a as an argument and return a value of type a.