I am trying to code an assignments apps in swift playgrounds 4 and I received this error when trying to make a function that deletes an assignment. Here is the function
func deleteAssignment(madeAssignmnet: assignmentClass){
if let index = Assignments.firstIndex(where: { assignmentClass -> Bool in
return madeAssignmnet.id = assignmentClass.id
}){
Assignments.remove(at: index)
}
}
what's the problem?