Skip to content

Conversation

@icyrockcom
Copy link
Contributor

Let me know how it looks.

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Seems sensible to me :)


toIntArray :: String -> Maybe (Array Int)
toIntArray = toCharArray
>>> map (singleton >>> fromString)
Copy link
Contributor

Choose a reason for hiding this comment

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

map f >>> sequence is just traverse f

Copy link
Contributor Author

@icyrockcom icyrockcom Apr 26, 2017

Choose a reason for hiding this comment

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

Thanks @paf31, missed that one, I'll try to remember :) I've pushed an update icyrockcom@25711b0 if you prefer to merge that one.

@paf31 paf31 merged commit 56495a9 into exercism:master Apr 25, 2017
@paf31
Copy link
Contributor

paf31 commented Apr 25, 2017

Thanks!

@icyrockcom
Copy link
Contributor Author

Thanks @lpil @paf31!

icyrockcom added a commit to icyrockcom/purescript-exercism that referenced this pull request Apr 26, 2017
icyrockcom added a commit to icyrockcom/purescript-exercism that referenced this pull request Apr 26, 2017
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.

3 participants