langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
16
Task/Function-composition/REBOL/function-composition-1.rebol
Normal file
16
Task/Function-composition/REBOL/function-composition-1.rebol
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
REBOL [
|
||||
Title: "Functional Composition"
|
||||
Author: oofoe
|
||||
Date: 2009-12-06
|
||||
URL: http://rosettacode.org/wiki/Functional_Composition
|
||||
]
|
||||
|
||||
; "compose" means something else in REBOL, therefore I use a 'compose-functions name.
|
||||
|
||||
compose-functions: func [
|
||||
{compose the given functions F and G}
|
||||
f [any-function!]
|
||||
g [any-function!]
|
||||
] [
|
||||
func [x] compose [(:f) (:g) x]
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue