diff --git a/README.md b/README.md index d87a7c0..2db7525 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ # compose -functional composition \ No newline at end of file +functional composition + +```jsonnet +local compose = import 'node_modules/jsonnet-compose/compose.libsonnet'; + +compose([ + function(x) x+1, + function(x) x+2, +])(1) +```