You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should define a data type for the 4 plants, instead of returning strings. The test file will define Eq and Show.
We will use a Vect 4, instead of a List.
We can use Maybe, with an added test case asking for the plants grown by "Zechariah". (Idris uses types like Maybe and Either, instead of having exceptions that don't appear in a function's type signature.)
The text was updated successfully, but these errors were encountered:
We should define a data type for the 4 plants, instead of returning strings. The test file will define Eq and Show.
We will use a
Vect 4
, instead of aList
.We can use
Maybe
, with an added test case asking for the plants grown by"Zechariah"
. (Idris uses types like Maybe and Either, instead of having exceptions that don't appear in a function's type signature.)The text was updated successfully, but these errors were encountered: