You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Partial function (TODO)](#partial-function-todo)
61
-
*[Functional Programming Libraries in Python](#functional-programming-libraries-in-python)
62
61
63
62
64
63
<!-- /RM -->
@@ -282,34 +281,6 @@ Constants are [referentially transparent](#referential-transparency). That is, t
282
281
#TODO
283
282
```
284
283
285
-
## Functor (TODO)
286
-
287
-
An object that implements a `map` function which, while running over each value in the object to produce a new object, adheres to two rules:
288
-
289
-
__Preserves identity__
290
-
```
291
-
object.map(x => x) ≍ object
292
-
```
293
-
294
-
__Composable__
295
-
296
-
```
297
-
object.map(compose(f, g)) ≍ object.map(g).map(f)
298
-
```
299
-
300
-
```python
301
-
#TODO
302
-
```
303
-
304
-
## Pointed Functor (TODO)
305
-
306
-
An object with an `of` function that puts _any_ number of values into it. The following property
307
-
`of(f(x)) == of(x).map(f)` must also hold for any pointed functor.
308
-
309
-
```python
310
-
#TODO
311
-
```
312
-
313
284
## Lift (TODO)
314
285
315
286
Lifting is when you take a value and put it into an object like a [functor](#pointed-functor). If you lift a function into an [Applicative Functor](#applicative-functor) then you can make it work on values that are also in that functor.
@@ -376,6 +347,29 @@ Lazy evaluation is a call-by-need evaluation mechanism that delays the evaluatio
376
347
#TODO
377
348
```
378
349
350
+
## Functor (TODO)
351
+
352
+
An object that implements a `map` function which, while running over each value in the object to produce a new object, adheres to two rules:
353
+
354
+
__Preserves identity__
355
+
```
356
+
object.map(x => x) ≍ object
357
+
```
358
+
359
+
__Composable__
360
+
361
+
```
362
+
object.map(compose(f, g)) ≍ object.map(g).map(f)
363
+
```
364
+
365
+
```python
366
+
#TODO
367
+
```
368
+
369
+
## Applicative (TODO)
370
+
371
+
## Applicative Functore (TODO)
372
+
379
373
## Monoid (TODO)
380
374
381
375
An object with a function that "combines" that object with another of the same type.
@@ -590,9 +584,3 @@ Fortunately a partial function can be converted to a regular (or total) one. We
590
584
```python
591
585
#TODO
592
586
```
593
-
594
-
## Functional Programming Libraries in Python
595
-
596
-
### In This Doc (TODO)
597
-
598
-
A comprehensive curated list of functional programming libraries for Python can be found [here](https://github.com/sfermigier/awesome-functional-python)
0 commit comments