ziglings/patches/patches/46_optionals2.patch
2021-02-16 20:21:32 -05:00

12 lines
356 B
Diff

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;