From c39c67ea014ecabf9725307f53c77615372c6798 Mon Sep 17 00:00:00 2001 From: NaiJi Date: Fri, 15 Apr 2022 12:53:48 +0000 Subject: [PATCH] Add '18.nix' --- 18.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 18.nix diff --git a/18.nix b/18.nix new file mode 100644 index 0000000..5d7017c --- /dev/null +++ b/18.nix @@ -0,0 +1,15 @@ +let + x = { a="bananas"; b= "pineapples"; }; + y = { a="kakis"; c ="grapes";}; + z = { a="raspberrys"; c= "oranges"; }; + + func = {a, b, c ? "another secret ingredient"}: "A drink of: " + + a + ", " + b + " and " + c; +in +rec { + ex00=func ( x ); + # hit 'run', you need the output to solve this! + ex01=func (y // x); + ex02=func (x // { c="lychees";}); + ex03=func (z // x // z); +} \ No newline at end of file