more functions Flashcards
1
Q
repeat element
A
Takes an element and produces an infinite list of just that element.
2
Q
replicate NUMBER ELEMENT
A
Replicates ELEMENT NUMBER times.
3
Q
fst PAIR
A
Takes a pair and returns its first component.
4
Q
snd PAIR
A
Takes a pair and returns its second component.
5
Q
:l
A
loads functions
6
Q
:t
A
Tells us the type of a following expression.
7
Q
cycle LIST
A
Takes a list als cycles it into an infinite list.