compose/README.md

13 lines
178 B
Markdown

# compose
functional composition
```jsonnet
local compose = import 'node_modules/jsonnet-compose/compose.libsonnet';
compose([
function(x) x+1,
function(x) x+2,
])(1)
```