rnix 0.14.0

A Nix parser written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Test used by examples/list-fns.rs
rec {
  # Usage: add x y
  # Adds the integers x and y together and returns the result
  add =
    # First integer
    x:
    # Second integer
    y:
    x + y;
  # Usage: sum nums
  # Returns the sum of the integer array nums
  sum = nums: builtins.foldl' add 0 nums;
}