1
1
Fork 0

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:
Svetlana Isakova 2021-07-20 15:30:25 +02:00 committed by GitHub
commit 31858e9dd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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.