This course has already ended.
You cannot submit this assignment

You need to sign in and enrol to submit exercises.

Assignment 25 (Purchases of)

Here is a partial Scala implementation of the above algorithm. What should go in the place marked ???.

def purchasesOf(buyer: String) =
  val purchases = Buffer[EnglishAuction]()
  for current <- this.items do
    if current.buyer == Some(buyer) then
      ???
  purchases.toVector

In the field below, write a command to replace the question marks.

Posting submission...

Earned points

0 / 4

Exercise info

Assignment category
Graded
Your submissions
0 / 10
Deadline
Wednesday, 11 October 2023, 18:00
Late submission deadline
Monday, 15 April 2024, 12:00 (-100%)
Group size
1-2
Total number of submitters
878