In my erlang web application, there is a list, which contains integers to be printed on the web page. But when the script executes, it prints this, instead of actual list,
Please look at this Image showing characters for unicode codepoint 1, 1, 2, 3, 5, 8, whitespace, codepoint 15
How to format this to gain what I want? Target list is [1, 1, 2, 3, 5, 8, 13, 15]
You should do this:
P = [1, 1, 2, 3, 5, 8, 13, 15],
Show_on_page = io_lib:format("~p",[P]),
Show_on_page.
This will represent any Erlang term on the web page the way you want to see it.