Week 3 Flashcards
(3 cards)
1
Q
What is the Generate and Select Design Pattern?
A
Can be used to describe a good solution to the number funnel problem, obtained by filtering values from a generator using a selector
2
Q
What is List Comprehension?
A
Item generated from one list are transformed or tested to give items of another
eg.
List of x * x | x <- [1,4,2,3] has individual components squared to get [1,16,4,9]
way of forming one list from another
3
Q
A