Contains composition of useful structures
Project description
Compositions
A package to introduce composable structures to python
Installation
pip install Compositions
Github Repository
Usage
from compositions.compositions import Compose
# Declare a composable function
@Compose
def f(x):
return x
# Declare a composable function
@Compose
def g(x):
return x**2 + x**3
print(g(3))
print(f(4))
# f(g(x))
print( (g*f)(3) )
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Compositions-1.0.1.3.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for Compositions-1.0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e2ff9fb8ba4943d6c6e34520b8641e38171191ba8c78656164baa0505c2e124 |
|
MD5 | fd3ea0091c3adb0f8cf3a89d4826377e |
|
BLAKE2b-256 | 400356acca3ff302a1d6c95657dd54b7c3fd4e6034a62434a5cb846b7a783d41 |