compose/README.md

13 lines
190 B
Markdown

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