1 Functional Programming
1.1 Cond
Example use:
#include "../code/fcpp.hh"
int absolut (int x)
{
return cond( x <= 0, -x, x);
}
int main ()
{
(absolut(-3));
printreturn 0;
}
Example use:
#include "../code/fcpp.hh"
int absolut (int x)
{
return cond( x <= 0, -x, x);
}
int main ()
{
(absolut(-3));
printreturn 0;
}