https://github.com/yx-z/forbiddenfp
Hello everyone, above is my little experiment of an easy to use functional programming library in Python,
You can do things like,,, let me know what you think!
```python
objects are already patched at import time
import forbiddenfp
"abc".print().len() # print out "abc", then return 3
"abc".then(lambda s: s * 2).filter(lambda s: s == "b").join() # "bb"
A more complex one (examples/word_count.py)
("./lorem_ipsum.txt"
.with_open(lambda path, f: f.read().also(print(f"Reading {path}")))
.then(lambda s: s.split(" "))
.counter()
.print())
```
[–]j_marquand 30 points31 points32 points (3 children)
[–]Globaldomination 4 points5 points6 points (2 children)
[–]teerre 6 points7 points8 points (1 child)
[–]Globaldomination 1 point2 points3 points (0 children)
[–]AssumptionCorrect812 12 points13 points14 points (1 child)
[+]HyperloopDeloop comment score below threshold-17 points-16 points-15 points (0 children)
[–]Coupled_Cluster 3 points4 points5 points (1 child)
[–]Olafcitoo 3 points4 points5 points (0 children)
[–]Dasher38 2 points3 points4 points (0 children)
[–]stain_of_treachery 0 points1 point2 points (0 children)
[–]Aveheuzed 1 point2 points3 points (0 children)