Jack Firth <jackhfirth@gmail.com>
This library provides an alternative #%app syntax that interprets double dots as (unary) function composition. The syntax is lightweight and extensible through syntax parameters, allowing alternative base forms of #%app to be substituted. Included with this package is integration with the fancy-app module, to make composition of anonymous functions as painless as possible.
Source code for this library is avaible at https://github.com/jackfirth/compose-app
syntax
( compose-app func-exprdotted-func-expr...)
16
'(bar baz)
'(bar baz)
The composition produced by compose-app is a single-argument function defined in terms of compose-app-base-lambda , which defaults to lambda from racket/base.
syntax
syntax
syntax
syntax
syntax
'(10 100)