How do I display long results in LFE REPL?

129 Views Asked by At

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?

2

There are 2 best solutions below

0
rvirding On BEST ANSWER

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.

0
dvaergiller On

Something I do in this case is often to use io:format:

io:format("~p~n", [X]).

I guess it's the same with LFE, but with slightly different syntax.