jsonnet-sys 0.17.0

Native bindings to the libjsonnet library
Documentation
1
2
3
4
5
6
7
8
9
10
{
  equal_parts(size, ingredients)::
    // Define a function-scoped variable.
    local qty = size / std.length(ingredients);
    // Return an array.
    [
      { kind: i, qty: qty }
      for i in ingredients
    ],
}