![]() |
As an example, consider a binary functor f0 and two functors f1 and f2, with arity three and two, respectively. Composing f1 and f2 into f0 yields a new functor
f:(x0,x1,x2,x3,x4) f0(f1(x0,x1,x2),f2(x3,x4))
with arity five.
#include <CGAL/functional.h>
| ||||
|
|
returns the functor
f0(f1( · )) with the same arity as f1.
| ||
| ||||
| ||||
|
returns the functor
f0(f1( · ),f2( · )) with arity equal
to ar(f1)+ar(f2).
| |||
| ||||
| ||||
| ||||
returns the functor
f0(f1( · ),f2( · ),f3( · ))
with arity equal to ar(f1)+ar(f2)+ar(f3).
|