Added quiz 6 (and the trumpeting sounds grow louder)

This commit is contained in:
Dave Gauer 2021-02-28 13:51:33 -05:00
parent b12afaa577
commit 2d205d9645
4 changed files with 112 additions and 7 deletions

View file

@ -0,0 +1,11 @@
28a29,31
> pub fn getTrunk(self: *Elephant) *Elephant {
> return self.trunk.?;
> }
30,31c33,35
< ???
<
---
> pub fn hasTrunk(self: *Elephant) bool {
> return (self.trunk != null);
> }