Skip to content

Elementary combinators in Python. Mostly a convenience library for my sake.

License

Notifications You must be signed in to change notification settings

Evan-Hock/pycombinators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

combinators.py

Elementary combinators in Python inspired by LISP and Haskell. Mostly a convenience library for my sake.

Installation

pip install pycombinators

Sample Usage

from pycombinators import flip
from functools import partial

# returns true if all values in xs are numbers
def is_all_numbers(xs: list) -> bool:
    isinstanceof = flip(isinstance)
    return all(map(partial(isinstanceof, float), xs))

About

Elementary combinators in Python. Mostly a convenience library for my sake.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages