2cl (pronounce "toccle") is a functional programming extension for C++
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

20 行
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...);
}
};
}