From e32bd7ce30c8548884289483951395d4e7a4a0b7 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Tue, 16 Feb 2021 20:21:32 -0500 Subject: Added ex. 46 optionals 2 - elephants! --- patches/patches/46_optionals2.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 patches/patches/46_optionals2.patch (limited to 'patches') diff --git a/patches/patches/46_optionals2.patch b/patches/patches/46_optionals2.patch new file mode 100644 index 0000000..18284da --- /dev/null +++ b/patches/patches/46_optionals2.patch @@ -0,0 +1,11 @@ +12c12 +< tail: *Elephant = undefined, // <---- make this optional! +--- +> tail: ?*Elephant = undefined, +39,42c39 +< // We should stop once we encounter a tail that +< // does NOT point to another element. What can +< // we put here to make that happen? +< if (e.tail == null) ???; +--- +> if (e.tail == null) break; -- cgit v1.2.3-ZIG