2cl (pronounce "toccle") is a functional programming extension for C++
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 regels
272 B

#pragma once
namespace cl
{
template<typename a, typename fn>
class curry
{
a param;
fn call;
public:
curry(a p, fn func)
: param{p}
, call{func}
{}
template<typename ...b>
auto operator()(b ...Args){
return call(param, Args...);
}
};
}