<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Op 18-10-2015 om 21:55 schreef Jachym
      Holecek:<br>
    </div>
    <blockquote cite="mid:20151018195544.GA13395@circlewave.net"
      type="cite">
      <pre wrap=""># Roelof Wobben 2015-10-18:
</pre>
      <blockquote type="cite">
        <pre wrap="">I have this two functions :

filter(List, Filter) ->
    lists:filter(Filter, List).
</pre>
      </blockquote>
      <pre wrap="">
What is the point of this?</pre>
    </blockquote>
    These were my solutions to these exercises : <br>
    <br>
    <span style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">6.
      Add a higher-order function to <span style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">math_functions.erl
        <span style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">called
          <span style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">filter(F,
            L)<span style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">,
              which returns<br>
              <span style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">all
                the elements <span style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">X
                  <span style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">in
                    <span style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">L
                      <span style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">for
                        which <span style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">F(X)
                          <span style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">is
                            <span style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">true<span
                                style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">.<br>
                                <span style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">7.
                                  Add a function <span
                                    style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">split(L)
                                    <span style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">to
                                      <span style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">math_functions.erl<span
                                          style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">,
                                          which returns <span
                                            style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">{Even,
                                            Odd} <span
                                              style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">where<br>
                                              <span style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">Even
                                                <span
                                                  style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">is
                                                  a list of all the even
                                                  numbers in <span
                                                    style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">L
                                                    <span
                                                      style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">and
                                                      <span
                                                        style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">Odd
                                                        <span
                                                          style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">is
                                                          a list of all
                                                          the odd<br>
                                                          <span
                                                          style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">numbers
                                                          in <span
                                                          style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">L<span
                                                          style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">.
                                                          Write this
                                                          function in
                                                          two different
                                                          ways using
                                                          accumulators<br>
                                                          <span
                                                          style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">and
                                                          using the
                                                          function <span
                                                          style="font-family:
DejaVuSans;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">filter
                                                          <span
                                                          style="font-family:
BookmanStd-Light;font-size:10pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;">you
                                                          wrote in the
                                                          previous
                                                          exercise.</span></span></span></span></span><br
                                                          style="
                                                          font-style:
                                                          normal;
                                                          font-variant:
                                                          normal;
                                                          font-weight:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          line-height:
                                                          normal;
                                                          orphans: 2;
                                                          text-align:
                                                          -webkit-auto;
                                                          text-indent:
                                                          0px;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          widows: 2;
                                                          word-spacing:
                                                          0px;
                                                          -webkit-text-size-adjust:
                                                          auto;
                                                          -webkit-text-stroke-width:
                                                          0px; ">
                                                          </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br>
  </body>
</html>