Skip to content

Commit

Permalink
ii_collections/_13_Introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Lotz committed Dec 28, 2017
1 parent cc7dd96 commit 8594286
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ii_collections/n13Introduction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ fun example0(list: List<Int>) {
list.toCollection(HashSet<Int>())
}

fun Shop.getSetOfCustomers(): Set<Customer> {
// Return a set containing all the customers of this shop
todoCollectionTask()
// return this.customers
}
fun Shop.getSetOfCustomers(): Set<Customer> = customers.toSet()


0 comments on commit 8594286

Please sign in to comment.