[erlang-questions] How to get strings instead of ints out of this code?
Jarrod Roberson
jarrod@REDACTED
Wed May 7 20:33:20 CEST 2008
Erlang (BEAM) emulator version 5.6 [smp:2] [async-threads:0]
Eshell V5.6 (abort with ^G)
1> [A,B|T] = "abcdefg".
"abcdefg"
2> A.
97
3> B.
98
4> T.
"cdefg"
I know _why_ A. and B. print out as ints and why T. prints out as a string
of characters, how do I get A and B to print out as characters?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080507/220ec669/attachment.htm>
More information about the erlang-questions
mailing list