masala 0.2.0

Automatic curry. Yum!
Documentation

Masala

An autocurrying macro for Rust.

Usage

This crate requires nightly:

use masala::curry;

#[curry]
fn mul<T: Multiple>(a: T, b: T) -> T {
    a mul b
}

fn flip<T>(a: Fn(T), b: T, t:T) -> T {
    a(c, b)
}

fn main() {
    println!("{}", add(33)(42));
    println!("{}", flip(add)(33)(42));
}

TODO

  • Allow for Generics
  • Allow for curry functions to be written similar to