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

Lab 1: Exercise 8 #1

Open
BertLisser opened this issue Sep 13, 2017 · 1 comment
Open

Lab 1: Exercise 8 #1

BertLisser opened this issue Sep 13, 2017 · 1 comment

Comments

@BertLisser
Copy link

honest :: [Boy]
honest = accusers (head guilty)

The last remark starting with
If the puzzle is well-designed
was not an assumption. So better code would be:

honest :: [Boy]
honest = concat [accusers x | x <-guilty]

Well done!

@Scoudem
Copy link
Contributor

Scoudem commented Sep 14, 2017

Thanks, we indeed took that as an assumption.

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

2 participants