nim_curry
Provides a macro to curry function
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install nim_curry
choosenim install nim_curry
git clone https://github.com/zer0-star/nim-curry
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| nim_curry | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/zer0-star/nim-curry |
|---|---|
| Homepage | https://github.com/zer0-star/nim-curry |
| Documentation | View Documentation |
| Registry Source | nimble_official |
README
nim-curry: Easy currying library for Nim
You can curry functions by simply putting {.curry.}.
Example
import nim_curry
proc f(foo, bar = 100; baz: float): float {.curry.} =
return (foo + bar).float * baz
echo f(10)(20)(2.5) # => 75.0
echo f()(2)(0.1) # => 10.2
echo f()()(0.0) # => 0.0