Merge pull request #33 from sofiiako/sofia/Functional-Programming-Member-References-Exercise1-EDC-445
fix(Task description Member References #1): Corrected function names
This commit is contained in:
commit
31858e9dd0
|
@ -7,8 +7,8 @@ be `LAND`, `WATER` or `AMPHIBIOUS`, and it also contains a member function
|
|||
`Habitat`.
|
||||
|
||||
The `main()` starter code creates a `List<Pet>`. Using `filter()` together with
|
||||
member references, implement three functions `livesOnLand()`, `livesInWater()`
|
||||
member references, implement three functions `liveOnLand()`, `liveInWater()`
|
||||
and `areAmphibious()` that discover which pets in the list live on land, in the
|
||||
water, or are amphibious. Lastly, use `partition()` to implement the
|
||||
`partitionAmphibious()` function that divides the pets into those that are
|
||||
`partAmphibious()` function that divides the pets into those that are
|
||||
amphibious and those that are not.
|
||||
|
|
Loading…
Reference in New Issue