4 lines
101 B
Nix
4 lines
101 B
Nix
{...}: {
|
|
badType = expect: x:
|
|
throw "Expected type ${expect} but got ${builtins.typeOf x}.";
|
|
}
|