[erlang-questions] How to get strings instead of ints out of this code?

Paul Fisher pfisher@REDACTED
Wed May 7 20:45:16 CEST 2008


On Wed, 2008-05-07 at 14:33 -0400, Jarrod Roberson wrote:
> 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

If you mean just in the shell, then:
2> [A].
"a"


-- 
paul




More information about the erlang-questions mailing list