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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly