-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
206 lines (144 loc) · 9.77 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html>
<head prefix="og: http://ogp.me/ns#">
<meta charset="utf-8">
<title>The functional JavaScript library | functional.js</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="canonical" href="http://functionaljs.com/">
<link rel="shortcut icon" href="/favicons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="57x57" href="/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="114x114" href="/favicons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="72x72" href="/favicons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="144x144" href="/favicons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="60x60" href="/favicons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="120x120" href="/favicons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="76x76" href="/favicons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="152x152" href="//faviconsapple-touch-icon-152x152.png">
<link rel="icon" type="image/png" href="/favicons/favicon-196x196.png" sizes="196x196">
<link rel="icon" type="image/png" href="/favicons/favicon-160x160.png" sizes="160x160">
<link rel="icon" type="image/png" href="/favicons/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/favicons/favicon-32x32.png" sizes="32x32">
<meta name="msapplication-TileColor" content="#50b6a9">
<meta name="msapplication-TileImage" content="/favicons/mstile-144x144.png">
<meta name="description" content="functional.js is a functional JavaScript library that facilitates currying and point-free / tacit programming.">
<meta property="og:type" content="website">
<meta property="og:title" content="The functional JavaScript library">
<meta property="og:url" content="http://functionaljs.com/index.html">
<meta property="og:site_name" content="functional.js">
<meta property="og:description" content="functional.js is a functional JavaScript library that facilitates currying and point-free / tacit programming.">
<meta property="og:image" content="https://travis-ci.org/functionaljs/functional-js.png?branch=master">
<meta property="og:image" content="https://badge.fury.io/js/functional.js.png">
<meta property="og:image" content="https://david-dm.org/functionaljs/functional-js/dev-status.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="The functional JavaScript library">
<meta name="twitter:description" content="functional.js is a functional JavaScript library that facilitates currying and point-free / tacit programming.">
<meta name="twitter:site" content="@lee_crossley">
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link href="//fonts.googleapis.com/css?family=Raleway:300" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro:400,700" rel="stylesheet" type="text/css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42989646-9', 'functionaljs.com');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="wrap">
<header id="header">
<div class="outer">
<div class="inner">
<h1 id="logo-wrap">
<a href="/" id="logo">functional.js</a>
</h1>
<iframe src="http://ghbtns.com/github-btn.html?user=functionaljs&repo=functional-js&type=star&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="75" height="30"></iframe>
</div>
</div>
</header>
<article class="page" itemscope itemtype="http://schema.org/Article">
<header id="page-banner">
<div class="outer">
<div id="page-banner-inner" class="inner">
<h1 id="page-title" itemprop="name">The functional JavaScript library</h1>
</div>
</div>
</header>
<div class="outer">
<div class="page-content">
<div class="toc-wrap">
<strong class="toc-title">Jump to</strong>
<ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#What_is_functional-js?"><span class="toc-number">1.</span> <span class="toc-text">What is functional.js?</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Is_this_like_underscore-js?"><span class="toc-number">2.</span> <span class="toc-text">Is this like underscore.js?</span></a></li></ol>
</div>
<div class="page-entry" itemprop="articleBody">
<p><a href="https://travis-ci.org/functionaljs/functional-js" target="_blank" rel="external"><img src="https://travis-ci.org/functionaljs/functional-js.png?branch=master" alt="Build Status"></a> <a href="https://npmjs.org/package/functional.js" target="_blank" rel="external"><img src="https://badge.fury.io/js/functional.js.png" alt="npm version"></a> <a href="https://david-dm.org/functionaljs/functional-js#info=devDependencies" target="_blank" rel="external"><img src="https://david-dm.org/functionaljs/functional-js/dev-status.png" alt="devDependency Status"></a></p>
<h2 id="What_is_functional-js?">What is functional.js?</h2>
<p>functional.js is a functional JavaScript library. It facilitates <a href="http://en.wikipedia.org/wiki/Currying" target="_blank" rel="external">currying</a> and <a href="http://en.wikipedia.org/wiki/Tacit_programming" target="_blank" rel="external">point-free / tacit</a> programming and this methodology has been adhered to from the ground up.</p>
<h2 id="Is_this_like_underscore-js?">Is this like underscore.js?</h2>
<p>Yes and no. There are many similar functions but libraries like underscore can’t be curried in a regular fashion, as the items come before the iterator when supplied as arguments (e.g. (items, iterator) not (iterator, items)). There’s also no support in underscore.js for functional-level programming, whereas this is the premise for functional.js.</p>
<p>functional.js is really lightweight and can be used instead of underscore.js. It also has no dependencies and doesn’t extend any of JavaScript’s standard built-in objects or use native functions that conditionalise implementations.</p>
</div>
<footer id="page-footer">
<time id="page-footer-updated" datetime="2016-04-23T01:38:04.000Z" itemprop="dateModified">Updated: 23rd Apr 2016</time>
<a href="/installation/" id="page-footer-next" title="Installation">Next</a>
</footer>
</div>
<aside id="sidebar">
<strong class="sidebar-title">Getting started</strong>
<a href="/" class="sidebar-link current">Introduction</a>
<a href="/installation/" class="sidebar-link">Installation</a>
<strong class="sidebar-title">The basics</strong>
<a href="/basics/curry/" class="sidebar-link">curry</a>
<a href="/basics/arity/" class="sidebar-link">arity</a>
<a href="/basics/lambda/" class="sidebar-link">lambda</a>
<strong class="sidebar-title">Collections</strong>
<a href="/collections/each/" class="sidebar-link">each</a>
<a href="/collections/map/" class="sidebar-link">map</a>
<a href="/collections/reduce/" class="sidebar-link">reduce</a>
<a href="/collections/fold/" class="sidebar-link">fold</a>
<a href="/collections/apply/" class="sidebar-link">apply</a>
<a href="/collections/every-all/" class="sidebar-link">every</a>
<a href="/collections/any-contains/" class="sidebar-link">any</a>
<a href="/collections/select-filter/" class="sidebar-link">select</a>
<a href="/collections/pluck/" class="sidebar-link">pluck</a>
<a href="/collections/to-array/" class="sidebar-link">toArray</a>
<a href="/collections/first/" class="sidebar-link">first</a>
<a href="/collections/rest/" class="sidebar-link">rest</a>
<a href="/collections/last/" class="sidebar-link">last</a>
<a href="/collections/best/" class="sidebar-link">best</a>
<a href="/collections/partition/" class="sidebar-link">partition</a>
<a href="/collections/group/" class="sidebar-link">group</a>
<a href="/collections/while/" class="sidebar-link">while</a>
<a href="/collections/nub-unique/" class="sidebar-link">nub</a>
<strong class="sidebar-title">Functions</strong>
<a href="/functions/compose/" class="sidebar-link">compose</a>
<strong class="sidebar-title">Objects</strong>
<a href="/objects/clone/" class="sidebar-link">clone</a>
<a href="/objects/assign-extend/" class="sidebar-link">assign</a>
<a href="/objects/prop/" class="sidebar-link">prop</a>
<a href="/objects/is-array/" class="sidebar-link">isArray</a>
<a href="/objects/is-function/" class="sidebar-link">isFunction</a>
<a href="/objects/is-string/" class="sidebar-link">isString</a>
<strong class="sidebar-title">Existentials</strong>
<a href="/existentials/exists/" class="sidebar-link">exists</a>
<a href="/existentials/truthy/" class="sidebar-link">truthy</a>
<a href="/existentials/falsy/" class="sidebar-link">falsy</a>
</aside>
</div>
</article>
</div>
<footer id="footer">
<div class="outer">
<div class="inner">
<div id="footer-copyright">
© 2016 <a target="_blank" href="http://ilee.co.uk">Lee Crossley</a>
</div>
</div>
</div>
</footer>
<script src="https://cdn.rawgit.com/functionaljs/functional-js/master/functional.min.js"></script>
</body>
</html>