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 Distribution
Compositions-1.0.1.2.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for Compositions-1.0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab76deec44ee01d886b9821006b39425f90e76cf7122ce3116ae9bfbd2f5aacb |
|
MD5 | 8fd2e5c86bf23b2975ddd76b822abc04 |
|
BLAKE2b-256 | 0f0b915c48f59cf01edb25d968f3c9633caf5de41b1e7df3d9d6994af484efd8 |