September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
14
Task/Function-composition/Elena/function-composition.elena
Normal file
14
Task/Function-composition/Elena/function-composition.elena
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import extensions.
|
||||
|
||||
func1 extension op
|
||||
{
|
||||
compose(BaseFunction1 f)
|
||||
= (:x)(self eval(f eval:x)).
|
||||
}
|
||||
|
||||
program =
|
||||
[
|
||||
var fg := (:x)(x + 1) compose(:x)(x * x).
|
||||
|
||||
console printLine(fg eval(3)).
|
||||
].
|
||||
Loading…
Add table
Add a link
Reference in a new issue