<div dir="ltr">What happens when you write it out?<div><div><br></div><div>io:format("~w~n",[S]).</div></div><div><div>[49,50,51,97,52,53,54]</div></div><div><br></div><div>Hmm a strange list of integers appears.</div><div><br></div><div>A string in erlang is a (normal) list of characters/unicode codepoints which are represented by their integer value.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Sep 18, 2016 at 6:56 PM <<a href="mailto:lloyd@writersglen.com">lloyd@writersglen.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Now this I would not expect:<br>
<br>
4> S = "123a456".<br>
"123a456"<br>
<br>
5> is_integer(S).<br>
false<br>
<br>
6> [is_integer(I) || I <- S].<br>
[true,true,true,true,true,true,true]<br>
<br>
Please tell me what I don't understand.<br>
<br>
Many thanks,<br>
<br>
LRP<br>
<br>
<br>
*********************************************<br>
My books:<br>
<br>
THE GOSPEL OF ASHES<br>
<a href="http://thegospelofashes.com" rel="noreferrer" target="_blank">http://thegospelofashes.com</a><br>
<br>
Strength is not enough. Do they have the courage<br>
and the cunning? Can they survive long enough to<br>
save the lives of millions?<br>
<br>
FREEIN' PANCHO<br>
<a href="http://freeinpancho.com" rel="noreferrer" target="_blank">http://freeinpancho.com</a><br>
<br>
A community of misfits help a troubled boy find his way<br>
<br>
AYA TAKEO<br>
<a href="http://ayatakeo.com" rel="noreferrer" target="_blank">http://ayatakeo.com</a><br>
<br>
Star-crossed love, war and power in an alternative<br>
universe<br>
<br>
Available through Amazon or by request from your<br>
favorite bookstore<br>
<br>
<br>
**********************************************<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>