| 1. |
Mention What Are The Types Of Polymorphism You Will Encounter In Haskell? |
|
Answer» In Haskell, there are two types of POLYMORPHISM: Parametric Polymorphism: A function is parametrically polymorphic, if it behaves EQUALLY for all types, in at least one of its type parameters BOUNDED Polymorphism: You have bounded polymorphism or ad hoc, if you have CUSTOM behavior that you want to have for certain set of types In Haskell, there are two types of polymorphism: Parametric Polymorphism: A function is parametrically polymorphic, if it behaves equally for all types, in at least one of its type parameters Bounded Polymorphism: You have bounded polymorphism or ad hoc, if you have custom behavior that you want to have for certain set of types |
|