The implementation of these functions was described in the chapter "Piecing it together" (third code block). It's pretty much what you wrote here, instead I used the convenience function that assumes you want to encode and decode against the classic alphabet :)
But maybe I'm misinterpreting your comment. In any case, thank you for feedback so far!
Thanks for the reply. I went through it the first time, and could interpret it as a first time reader. This is no longer the case, so I don't know why I wrote that. Sorry.
But I think it is okay as is now.
Do you want me to delete these corrections now that they have been remedied?
No worries! I appreciate the feedback regardless ☺️ Don't worry about the comments, I think that's part of the post and perhaps it encourages folks to point out mistakes I might have made. Thanks👌
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.
You're missing
encode
anddecode
. You have a description of them, maybe it is enough to write it myself.Oh, I'm a bit wrong here: The included
encode
anddecode
calls themselves, which is not entirely correct. The version that works is here:I love how this example is self-contained enough that I can actually guess the intent.
The implementation of these functions was described in the chapter "Piecing it together" (third code block). It's pretty much what you wrote here, instead I used the convenience function that assumes you want to encode and decode against the classic alphabet :)
But maybe I'm misinterpreting your comment. In any case, thank you for feedback so far!
Thanks for the reply. I went through it the first time, and could interpret it as a first time reader. This is no longer the case, so I don't know why I wrote that. Sorry.
But I think it is okay as is now.
Do you want me to delete these corrections now that they have been remedied?
No worries! I appreciate the feedback regardless ☺️ Don't worry about the comments, I think that's part of the post and perhaps it encourages folks to point out mistakes I might have made. Thanks👌