Contains composition of useful structures
Project description
Compositions
A package to introduce composable structures to python
Installation
pip install Compositions
Python 3.7
(Github Repository)[https://github.com/QuantumNovice/ComposedStructures/Compositions]
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for Compositions-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be5bcf2ba2053e36652877ae7a6971df1b8e8f728b11605829d8f0753e32f7bc |
|
MD5 | ed7104e7ee0a17b076cdaa12e3f9d904 |
|
BLAKE2b-256 | 1add3ae2be8cc457efec9cada119330d8df925a16bfdb61e2ee2f7e99b1fe3b1 |