blob: 3aae22f206d3e42633abe0054b0c032a2316f26b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
{ lib, ... }:
with lib;
rec {
# listset k v = set k [v]
# insert : k -> v -> listset k v -> listset k v
insert = name: value: set:
set // { ${name} = set.${name} or [] ++ [value]; };
}
|