I want to convert from integer values to string characters as follows:
0
to "a"
1
to "b"
and so forth up to
26
to "z"
Is there a way to do this in e without a big case statement?
Note: e
is strongly typed and it isn't possible to do any type of arithmetic on string values. There also isn't any char
-like type.
Another node: To all you C/C++ hotshots who keep down-voting my question, this isn't as easy a problem as you might think.
You can do something like this:
0c"a"
denotes the ASCII value of the letter 'a'. And anas_a()
conversion of a list of numbers (actually, bytes) into a string creates a string where each character has the ASCII value of the corresponding list element.