Getting Started Flashcards
1
Q
Explain side effect in a function
A
Haskell functions have no side effects.
2
Q
Describe variables in Haskell
A
cannot change the value of a variable later in the program. If variable ‘a’ is set to 5, it remains so throughout the funciton
3
Q
Describe Referential Tarnsparency
A
If a function yields the same result, given the same inputs irrespective of the number of times it has been called - is called referential transparency.
4
Q
Describe Lazy Evaluation in Programming Langauages
A
expressions and functions are evaluated only when needed.This also avoids repeated evaluations thereby increasing performance