Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kindergarten-garden exercise #173

Open
keiravillekode opened this issue Jul 27, 2024 · 0 comments
Open

Add kindergarten-garden exercise #173

keiravillekode opened this issue Jul 27, 2024 · 0 comments

Comments

@keiravillekode
Copy link
Contributor

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant