pyramda
pyramda copied to clipboard
Python package supporting heavy functional programming through currying. Translation of the Ramda library from javascript to python.
python v3.7.7 pylint v2.4.4 ramda v0.5.7 ```python import ramda as R old_list_of_objs = [{'name': 'a good name', 'age': 99, 'color': 'red'}, {'name': 'also a good name', 'age': 100, 'color': 'blue'}]...
not have some function
Currently, there are no checks in place to ensure that functions passed as arguments to pyramda functions conform to a specific contract in terms of signature and return values. For...
Add flip
May behave weirdly with kwargs
Given a function `f`, the functions `curry(f)` and `curry(curry(f))` should behave identically. There should be a test verifying this for functions of varying arities.
There's just too many weird interactions. Supporting them is complex and makes the usages and documentation of `curry` more complex for little benefit.
Not sure exactly how to do this, but ideally it should be possible to write a single test that traverses all functions exported by Pyramda and asserts they're curried. A...
A lot of functions provided by pyramda have useful properties that are true for all their inputs (or certain subsets of their inputs). It would be nice to have property...
Hi, I did some experiments w/ `inspect.signature` and it works quite well. [curry.py](https://github.com/peteut/pyramda/blob/master/pyramda/function/curry.py) gets much simpler, but there is no checking for updated `**kwargs` in yet. Cheers, Alain