Haskell Type Annotations Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

takeWhile and dropWhile

A

(a -> Bool) -> [a] -> [a]

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

Ord

A

Gives order
1 < 2 for example.

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

Show

A

Print, essentially.

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

Eq

A

Equal:
1 == 1 for example.

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

Read

A

Allows something to be read as a Int, or [char] for example.
Allows types tp be changed.

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

.

A

(b -> c) -> (a -> b) -> a -> c

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

Foldable

A

Used for fold, etc.

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

Foldl1 / Foldr1

A

Foldable t => (a -> a -> a) -> t a -> a

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

Foldl / Foldr

A

Left = Foldable t => (b -> a -> b) -> b -> t a -> b
Right = Foldable t => (a -> b -> b) -> b -> t a -> b

B is the accumulator

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

zipWith

A

(a -> b -> c) -> [a] -> [b] -> [c]

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

zip

A

[a] -> [b] -> [(a, b)]

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

Fractional

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

Integral

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

Num

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