1.

Explain How Function Is Defined In Haskell?

Answer»

Function definition in Haskell consists of a number of condition equations. At the beginning of each, after the function name, there are PATTERNS that SHOW to which data each equation applies. After that there are multiple clauses, representing DIFFERENT cases and a where CLAUSE to hold local definitions.

Function definition in Haskell consists of a number of condition equations. At the beginning of each, after the function name, there are patterns that show to which data each equation applies. After that there are multiple clauses, representing different cases and a where clause to hold local definitions.



Discussion

No Comment Found