Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
26
Task/Function-composition/Aime/function-composition.aime
Normal file
26
Task/Function-composition/Aime/function-composition.aime
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
compose_i(,,)
|
||||
{
|
||||
($0)(($1)($2));
|
||||
}
|
||||
|
||||
compose(,)
|
||||
{
|
||||
compose_i.apply($0, $1);
|
||||
}
|
||||
|
||||
double(real a)
|
||||
{
|
||||
2 * a;
|
||||
}
|
||||
|
||||
square(real a)
|
||||
{
|
||||
a * a;
|
||||
}
|
||||
|
||||
main(void)
|
||||
{
|
||||
o_(compose(square, double)(40), "\n");
|
||||
|
||||
0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue