I also did use my algorithm in Elm. Here is the source-code for the inner logic function.
getMissingLetter : List Char -> Char -> Maybe Char getMissingLetter letters nextCharacter = case letters of [] -> Nothing letter :: rest -> let characterCode = Char.toCode letter nextCharacterCode = Char.toCode nextCharacter in if characterCode /= nextCharacterCode then Just nextCharacter else getMissingLetter rest <| Char.fromCode <| nextCharacterCode + 1
I bet there could be a way to use it in Haskell or PureScript as well, but I'm more confortable using Elm for now.
And the testing is of course available here on Ellie App.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I also did use my algorithm in Elm. Here is the source-code for the inner logic function.
I bet there could be a way to use it in Haskell or PureScript as well, but I'm more confortable using Elm for now.
And the testing is of course available here on Ellie App.