Aspis Documentation
Aspis is a functional programming library for Python, providing a collection of utility functions inspired by functional programming paradigms.
Installation
pip install aspis
Quick Example
The recommended way to use Aspis is to import the common module with an alias:
import aspis.common as A
# Create a pipeline of functions
times_two = A.multiply(2)
add_ten = A.add(10)
# Compose them together
transform = A.pipe(times_two, add_ten)
result = transform(5) # Returns 20: (5 * 2) + 10
API Reference
Common functional programming utilities for Aspis. |
|
Internal utilities for the Aspis library. |