September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 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