47-60
This commit is contained in:
parent
68bb75644b
commit
28dc209134
14 changed files with 41 additions and 35 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue