Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • $\begingroup$ Nicely done! I was hoping for some Mathematica builtin function that would do the work of maketrans, but this is a very nice solution, although it ultimately involves "a long list of rules" (see problem statement). $\endgroup$ Commented Nov 17, 2022 at 20:41
  • $\begingroup$ The list of rules is "the table". The form of the table is immaterial; you are still just doing a form of table lookup. $\endgroup$ Commented Nov 17, 2022 at 21:37