Skip to main content

Simplecurry’s curried provides a simple way to use curried functions in Python. There are alternative implementations, but they are unnecessarily complex.

Example

This is an example on how to use it:

from simplecurry import curried

@curried
def add(a, b, c):
    return a + b + c

add(1)(2)(3) # Returns 6
add(1, 2)(3) # Returns 6
add(1)(2, 3) # Returns 6
add(1, 2, 3) # Returns 6

Metadata

Release files for simplecurry 1.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simplecurry 1.12
File Size Uploaded
simplecurry-1.12.tar.gz 1.3 kB Details

Release files / simplecurry-1.12.tar.gz

Download URL simplecurry-1.12.tar.gz
Size 1.3 kB
Tags Source
SHA-256 checksum
How to use checksums
906301a828860e186c40a2fed8c7bd1a12a24551c2c26f9d357f86ea16374e05
BLAKE2b-256 checksum
How to use checksums
d96277fd0e95da69e193bed7b3ac1fd81070c9821814da26b45290248d33816b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.12 This release

1 release file

1.11

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page