RosettaCodeData/Task/Function-composition/REBOL/function-composition-2.rebol
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

8 lines
270 B
Text

foo: func [x] [reform ["foo:" x]]
bar: func [x] [reform ["bar:" x]]
foo-bar: compose-functions :foo :bar
print ["Composition of foo and bar:" mold foo-bar "test"]
sin-asin: compose-functions :sine :arcsine
print [crlf "Composition of sine and arcsine:" sin-asin 0.5]