DWiki /
compose
A function that takes two functions and returns the composition of them. In mathematical notation (f o g) x = f(g(x))
Using /DeimosTemplateLibrary:
instance TFunctional(boolean, boolean, int) lambda; boolean not(boolean b) { return !b;}; boolean negative(int n) { return n < 0;}; boolean() isNatural = lambda.compose(not, negative);Obs.: This may work according to the kind of functions passed (e.g. closure or combinator) because of current implementation of /DynamicClosures.
(From DWiki)