[erlang-questions] truncated list with ellipsis

Adam Kelly cthulahoops@REDACTED
Tue Jul 22 13:14:32 CEST 2008


2008/7/20 Russell Brown <russell.brown@REDACTED>:
> 1> [{A,B} || A <- lists:seq(0, 50), B <- lists:seq(0, 50), A + B =:= 50].

The shell function rp is really useful for this, as in:

2> rp([{A,B} || A <- lists:seq(0, 50), B <- lists:seq(0, 50), A + B =:= 50]).

Adam.



More information about the erlang-questions mailing list