pyramda icon indicating copy to clipboard operation
pyramda copied to clipboard

Add contract checking for functions passed as arguments to pyramda functions

Open skabbass1 opened this issue 6 years ago • 2 comments

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 example, the function passed to pyramda's flip function must accept atleast two arguments or the function passed to filter must be a predicate.

Libraries such as sanctuary might provide a good paradigm for implementing such contract checking

skabbass1 avatar Aug 10 '17 02:08 skabbass1