public
Description: Functional is a library for functional programming in JavaScript. It defines the standard higher-order functions such as map, reduce (aka foldl), and select (aka filter). It also defines functions such as curry, rcurry, and partial for partial function application; and compose, guard, and until for function-level programming.
Homepage: http://osteele.com/sources/javascript/functional/
Clone URL: git://github.com/osteele/functional-javascript.git
functional-javascript / tests.html
100644 19 lines (18 sloc) 0.748 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Functional Javascript Test Page</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" src="to-function.js"></script>
    <script type="text/javascript" src="functional.js"></script>
    <script type="text/javascript" src="tests.js"></script>
  </head>
  <body>
    <div id="result"> </div>
    <script type="text/javascript">
      $(document).ready(function() {
        $('body').append('<h1>' + test() + '</h1>');
      });
    </script>
  </body>
</html>