2020-07-29 13:47:06 +00:00
|
|
|
# compose
|
|
|
|
|
2020-07-29 19:09:10 +00:00
|
|
|
functional composition for jsonnet
|
2020-07-29 14:07:30 +00:00
|
|
|
|
|
|
|
```jsonnet
|
|
|
|
local compose = import 'node_modules/jsonnet-compose/compose.libsonnet';
|
|
|
|
|
|
|
|
compose([
|
|
|
|
function(x) x+1,
|
|
|
|
function(x) x+2,
|
|
|
|
])(1)
|
|
|
|
```
|
2020-07-29 19:51:26 +00:00
|
|
|
|
|
|
|
use https://www.conventionalcommits.org/en/v1.0.0/ to control releases.
|