Edited, memorised or added to reading queue

on 05-Jul-2020 (Sun)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

Inside function myAdd :: a -> a -> a
you’d need the ability to manually check that you were adding only the types it makes sense to add
(which isn’t possible in Haskell).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




[unknown IMAGE 5584686025996] #has-images
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




If you add deriving Ord to your definition of Icecream , Haskell defaults to the order of the data constructors for determining Ord .
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




GHCi> [S1 .. ] [one,two,three,four,five,six,*** Exception: No such value
Yikes!
You get an error because you didn’t handle the case of having a missing value.
But if you had just derived your type class, this wouldn’t be a problem
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




[unknown IMAGE 5584693103884] #has-images
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




[unknown IMAGE 5584696249612] #has-images
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Each of the downstream nations relies on access to the freshwater flowing out from Ethiopia, and this grants Addis Ababa political leverage across East Africa
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Addis Abba did not possess the means to shape nature.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




The primary method of power generation in Ethiopia is hydroelectricity.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




The biggest hydroelectic dam in Africa is the Grand Ethiopian Renaissance Dam and its power stations along the Blue Nile River.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Ever since the loss of its coastal territory in Eritrea, Ethiopia has been stripped of its access to the sea
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Today, Ethiopia relies on neighbouring Djibouti for 95 per cent of its trade.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Flashcard 5584736095500

Question
Ever since the loss of its coastal territory in [...], Ethiopia has been stripped of its access to the sea
Answer
Eritrea

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Ever since the loss of its coastal territory in Eritrea, Ethiopia has been stripped of its access to the sea

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 5584737668364

Question
Today, Ethiopia relies on neighbouring Djibouti for [...] per cent of its trade.
Answer
95

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Today, Ethiopia relies on neighbouring Djibouti for 95 per cent of its trade.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 5584740551948

Question
The biggest hydroelectic dam in Africa is the [...] and its power stations along the Blue Nile River.
Answer
Grand Ethiopian Renaissance Dam

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
The biggest hydroelectic dam in Africa is the Grand Ethiopian Renaissance Dam and its power stations along the Blue Nile River.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 5584742124812

Question
The biggest hydroelectic dam in Africa is the Grand Ethiopian Renaissance Dam and its power stations along the [...] River.
Answer
Blue Nile

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
The biggest hydroelectic dam in Africa is the Grand Ethiopian Renaissance Dam and its power stations along the Blue Nile River.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 5584745270540

Question
The primary method of power generation in Ethiopia is [...].
Answer
hydroelectricity

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
The primary method of power generation in Ethiopia is hydroelectricity.

Original toplevel document (pdf)

cannot see any pdfs







Types in Haskell allow you to view programs as a series of transformations.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




You can think of transformations as a more abstract level of thinking about functions. When solving problems in Haskell, you can approach them first as a sequence of abstract transformations.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




[unknown IMAGE 5584753659148] #has-images
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




mconcat = foldr mappend mempty
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Note that the reason mconcat uses foldr instead of foldl is due to the way that foldr can work with infinite lists, whereas foldl will force the evaluation.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs