This commit is contained in:
mitteneer 2024-07-21 23:09:03 -04:00
parent 68bb75644b
commit 28dc209134
14 changed files with 41 additions and 35 deletions

View file

@ -27,7 +27,13 @@ const Elephant = struct {
// Your Elephant trunk methods go here!
// ---------------------------------------------------
???
pub fn getTrunk(self: *Elephant) *Elephant {
return self.trunk.?;
}
pub fn hasTrunk(self: *Elephant) bool {
return (self.trunk != null);
}
// ---------------------------------------------------