Summing a number to the terms of a list
Tue Aug 12 19:58:26 CEST 2003
----- Original Message -----
From: "Jilani Khaldi" <>
> Why this code gives me these different results?
> [301,302,303] -- as I expected.
In the first two cases, the resulting lists contain small integers and when
printing those, the shell assumes they are strings. Erlang strings are
indistinguishable from arbitrary lists that happen to contain only small
integers (<255). Try in the shell to type
>[101, 102, 103].
More information about the erlang-questions