<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Greetings,<br>
    <br>
    Please read the documentation for the lists module,<br>
    <a class="moz-txt-link-freetext" href="http://www.erlang.org/doc/man/lists.html">http://www.erlang.org/doc/man/lists.html</a><br>
    <br>
    It has many useful functions for handling lists.<br>
    <br>
    <br>
    bengt<br>
    <br>
    <div class="moz-cite-prefix">On 08/19/2015 02:13 PM, Roelof Wobben
      wrote:<br>
    </div>
    <blockquote cite="mid:55D472F6.2010100@home.nl" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div class="moz-cite-prefix">oke, but I do not have a list of
        tuples but a list of lists that contain tuples,<br>
        <br>
        So I have this  [ [ {1,2}, {2,3}],  [ { 1,3} , { 2,1} ] ]<br>
        <br>
        and I do experiment a lot in erl but I seem to be lost. <br>
        <br>
        Roelof<br>
        <br>
        <br>
        Op 19-8-2015 om 14:05 schreef Kenneth Lakin:<br>
      </div>
      <blockquote cite="mid:55D470FC.1060104@gmail.com" type="cite">
        <pre wrap="">On 08/19/2015 04:10 AM, Roelof Wobben wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">Still my question stands. How do I get a nice list of the ourcome of the
exports of the functions ot more then 1 module.
</pre>
        </blockquote>
        <pre wrap="">Richard O'Keefe demonstrated that lists:sort/1 will -when given a list
of tuples- sort that list. He also presented code that will -when given
a sorted list of tuples- give you a count of the number of distinct
elements in that list. He *also* presented code that will -when given a
list of tuples of the form {fun, arity}- pretty print them in just the
way that you appear to require.

Does your project require more than this? :)

Here's a bit of unasked-for advice from an old guy who's been
programming for way too long.

It is sometimes helpful to step away from your code and your desk, go
somewhere else and carefully restate -in a human language- the problem
that you're trying to solve. When doing this, I find it helpful to
entirely forget about the code I have written. It's easy to assume that
the code that you've already written solves the problem you intend to
solve. If you're not sure that you're on the right track, it's good to
make as few assumptions as possible when verifying your current course.

I've worked myself into a state of confusion in which I have lost the
understanding of the problem I'm trying to solve more times than I care
to admit. In most of those cases, stepping away and re-familiarizing
myself with the problem at hand dispelled the confusion.

Another piece of unasked-for advice: If I recall correctly, you
mentioned that you're teaching yourself Erlang. If this is true, then
you probably don't have any hard deadlines to contend with. Take time to
peruse manuals and read user's guides. Take time to play around with
code in the Erlang shell. Take time to play with code that folks hand
you in response to your queries.

I learn non-rote things best when I'm not stressed out and I allow
myself to play around and experiment. Perhaps I'm atypical.

</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
erlang-questions mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
      </blockquote>
      <br>
      <br>
      <br>
      <hr style="border:none; color:#909090; background-color:#B0B0B0;
        height: 1px; width: 99%;">
      <table style="border-collapse:collapse;border:none;">
        <tbody>
          <tr>
            <td style="border:none;padding:0px 15px 0px 8px"> <a
                moz-do-not-send="true"
                href="https://www.avast.com/antivirus"> <img
                  moz-do-not-send="true"
                  src="http://static.avast.com/emails/avast-mail-stamp.png"
                  alt="Avast logo" border="0"> </a> </td>
            <td>
              <p style="color:#3d4d5a;
                font-family:"Calibri","Verdana","Arial","Helvetica";
                font-size:12pt;"> Dit e-mailbericht is gecontroleerd op
                virussen met Avast antivirussoftware. <br>
                <a moz-do-not-send="true"
                  href="https://www.avast.com/antivirus">www.avast.com</a>
              </p>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>