
29 Sep
2007
29 Sep
'07
8:08 a.m.
Kirit Sælensminde:
template< typename R, typename V1, typename V2 > boost::function< boost::function< R ( V1 ) > ( V2 ) > curry( boost::function< R ( V1, V2 ) > f ) { return boost::bind( papply< R, V1, V2 >, f, _1 ); }
...
boost::function< boost::function< int ( int ) > ( boost::function< int ( int, int ) >, int ) > fpapply( papply< int, int, int > );
...
//curry( fpapply );
Terrific.
It seems that fpapply is of the form function