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

Tutorial: Exercise involving polymorphism before introducing it #6

Open
ghost opened this issue Jul 21, 2020 · 0 comments
Open

Tutorial: Exercise involving polymorphism before introducing it #6

ghost opened this issue Jul 21, 2020 · 0 comments
Assignees

Comments

@ghost
Copy link

ghost commented Jul 21, 2020

Exercise 2 in the Basics chapter of the tutorial reads:

Exercise 2: Define the function ‘if’, which takes a boolean value b and two elements of an arbitrary type A and return the first element when b equals to true and the second one otherwise.

Polymorphism is necessary to solve this. However it is introduced after the exercise.

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