Currying in Rust — Part 2 (A glimpse of generics)
The last article was a short introduction into currying in rust based on some experiments with a friend of mine.
To really use the benefits of currying and creating a smaller library for it, we need to understand a little bit more about the applic...
hashnode.com
Victor Moroz
I would suggest slightly more generic approach, without relying on
Num:fn add<T: Add<Output=T> + Copy>(x: T) -> impl Fn(T) -> T { move | y: T | x + y }