1
0
Fork 0
mirror of https://github.com/NixOS/nix-pills synced 2024-09-19 04:00:13 -04:00
nix-pills/pills/17/fix-pkgs-function.txt
Samuel Leathers 8015a74ea2 port pill #17
2017-08-16 14:25:59 -04:00

5 lines
156 B
Plaintext

nix-repl> fix = f: let result = f result; in result
nix-repl> pkgs = self: { a = 3; b = 4; c = self.a+self.b; }
nix-repl> fix pkgs
{ a = 3; b = 4; c = 7; }