more functions Flashcards

1
Q

repeat element

A

Takes an element and produces an infinite list of just that element.

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

replicate NUMBER ELEMENT

A

Replicates ELEMENT NUMBER times.

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

fst PAIR

A

Takes a pair and returns its first component.

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

snd PAIR

A

Takes a pair and returns its second component.

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

:l

A

loads functions

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

:t

A

Tells us the type of a following expression.

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

cycle LIST

A

Takes a list als cycles it into an infinite list.

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