A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
|
|
@ -0,0 +1,10 @@
|
|||
MODE F = PROC(REAL)REAL; # ALGOL 68 is strong typed #
|
||||
|
||||
# As a procedure for real to real functions #
|
||||
PROC compose = (F f, g)F: (REAL x)REAL: f(g(x));
|
||||
|
||||
OP (F,F)F O = compose; # or an OPerator that can be overloaded #
|
||||
|
||||
# Example use: #
|
||||
F sin arc sin = compose(sin, arc sin);
|
||||
print((sin arc sin(0.5), (sin O arc sin)(0.5), new line))
|
||||
Loading…
Add table
Add a link
Reference in a new issue