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

Use more idiomatic Mercury #1

Merged
merged 1 commit into from
Nov 14, 2016
Merged

Use more idiomatic Mercury #1

merged 1 commit into from
Nov 14, 2016

Conversation

PaulBone
Copy link
Contributor

A call to solutions was unnecessary when an if-then-else goal is more
suitable.

Format the test case output a little nicer, it's now easier to read at a
glance.

Use higher order code to print a list of lines.

A call to solutions was unnecessary when an if-then-else goal is more
suitable.

Format the test case output a little nicer, it's now easier to read at a
glance.

Use higher order code to print a list of lines.
Copy link
Owner

@robx robx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thank you! Particularly using if then else instead of solutions, I couldn't figure that out at the time.

@robx robx merged commit f424fea into robx:master Nov 14, 2016
@PaulBone
Copy link
Contributor Author

No problem 😁

@PaulBone PaulBone deleted the idiomatic_mercury branch November 15, 2016 00:30
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

Successfully merging this pull request may close these issues.

2 participants