# [erlang-questions] strange result of lists:map(fun(X)-> 20*X end, [2, 4, 6, 8]).

hope@REDACTED hope@REDACTED
Tue Dec 3 16:13:42 CET 2013

```Hi,

I am a beginner,  and I got some strange result like this :

1> L=[2,4,6,8].
[2,4,6,8]
2> lists:map(fun(X)-> 20*X end,L).
"(Px?"
3> lists:map(fun(X)-> 21*X end,L).
"*T~‥"
4> lists:map(fun(X)-> 27*X end,L).
"6l¢O"
5> lists:map(fun(X)-> 28*X end,L).
"8p‥a"
6> lists:map(fun(X)-> 29*X end,L).
":tRe"
7> lists:map(fun(X)-> 30*X end,L).
"<x’e"
8> lists:map(fun(X)-> 31*X end,L).
">|oo"
9> lists:map(fun(X)-> 32*X end,L).
[64,128,192,256]
10> lists:map(fun(X)-> 22*X end,L).
[44,88,132,176]
11> lists:map(fun(X)-> 23*X end,L).
[46,92,138,184]
12> lists:map(fun(X)-> 24*X end,L).
[48,96,144,192]
13> lists:map(fun(X)-> 25*X end,L).
[50,100,150,200]
14> lists:map(fun(X)-> 26*X end,L).
[52,104,156,208]
15> lists:map(fun(X)-> 27*X end,L).
"6l¢O"

-------------------
Erlang R16B02 (erts-5.10.3) [smp:2:2] [async-threads:10]
Eshell V5.10.3 (abort with ^G)
-------------------
Windows Vista
-------------------

Can someone help me ?

Thanks a lot !

best regards.

hope@REDACTED  2013.12.03

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131203/ca26720e/attachment.htm>
```

More information about the erlang-questions mailing list