Search code examples
erlanglisplfe

How do I display long results in LFE REPL?


Following image shows that LFE truncates displayed results. Compared to SBCL REPL I can see less than half of result data.

enter image description here

How do I show all results in LFE?


Solution

  • To see it printed in LFE format you can use

    (lfe_io:format "~p\n" (list (lists:seq 1 50)))
    

    or, much easier, in the LFE repl:

    (pp (lists:seq 1 50))
    

    There is also a (p ...) call which writes it out without prettyprinting.