<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Nice one, Thank you.<div><br></div><div>Found out all about it here <a href="http://www.erlang.org/doc/man/io.html">http://www.erlang.org/doc/man/io.html</a></div><div><br></div><div>Cheers</div><div><br></div><div>Russell<br><div><div>On 20 Jul 2008, at 12:49, Dale Harvey wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">1> X = [{A,B} || A <- lists:seq(0, 50), B <- lists:seq(0, 50), A + B =:=50].<br>2> io:format("~p~n",[X]).<br><br><div class="gmail_quote">2008/7/20 Russell Brown <<a href="mailto:russell.brown@mac.com">russell.brown@mac.com</a>>:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br> Total newbie question but not an answer to it so far in the Armstrong<br> book (brilliant book btw, haven't enjoyed my computer and programming<br> this much for years) or in the documentation that I installed with<br> erlang (the erlang reference and the 4 day curse). I tried a google<br> search for erlang, beam, ellipsis too.<br> <br> So...just learning the basics and my kid is in the first year at<br> school and so I made a quick function that does the "Number Bonds" of<br> N. It works OK but when I run it interactively the list is truncated<br> and ellipsis are shown instead. Is there anyway I can have see the<br> total list?<br> <br> An exmplae would be like this:<br> <br> 1> [{A,B} || A <- lists:seq(0, 50), B <- lists:seq(0, 50), A + B =:=<br> 50].<br> [{0,50},<br> {1,49},<br> {2,48},<br> {3,47},<br> {4,46},<br> {5,45},<br> {6,44},<br> {7,43},<br> {8,42},<br> {9,41},<br> {10,40},<br> {11,39},<br> {12,38},<br> {13,37},<br> {14,36},<br> {15,35},<br> {16,34},<br> {17,33},<br> {18,32},<br> {19,31},<br> {20,30},<br> {21,29},<br> {22,28},<br> {23,27},<br> {24,26},<br> {25,25},<br> {26,24},<br> {27,...},<br> {...}|...]<br> <br> <br> Using Erlang (BEAM) emulator version 5.6.2 [source] [async-threads:0]<br> [kernel-poll:false] installed via MacPorts on OS X <a href="http://10.4.11." target="_blank">10.4.11.</a><br> <br> Cheers<br> <br> Russell<br> _______________________________________________<br> erlang-questions mailing list<br> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br> </blockquote></div><br></div></blockquote></div><br></div></body></html>