-
-
Notifications
You must be signed in to change notification settings - Fork 8
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 Alphametics exercise #105
Conversation
Cool exercise, and nice solution, congrats! |
@@ -0,0 +1,5 @@ | |||
module [solve] | |||
|
|||
solve : Str -> Result (List (U8, U64)) _ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This annotation differs slightly from the one in .meta/Example.roc
: it uses (U8, U64)
instead of (U8, U8)
. I suppose you want to use the latter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks! I will update this
Originally I had
solve
return a set, but I decided to change it to a list instead because right now the inspect output for sets is very noisy so it makes it difficult to use the test failure output.