In my code, I create a mutable list and add elements from a model:

```
var lista: MutableList<ExpenseItem> =  mutableListOf()
...
class ExpenseItem (val name: String, val word: String, val flavour: String)
...
      val currentExpense = ExpenseItem("Sergio", "Aguacate", "Duro")
            val currentExpense1 = ExpenseItem("amaya", "fresas", "pan")
            val currentExpense2 = ExpenseItem("emma", "limon", "agua")

            lista.add(currentExpense)
            lista.add(currentExpense1)
            lista.add(currentExpense2)

```

Now I am looking for a way to remove elements knowing, for example, the ´name´ field

I have tried the filters, remove, drop, etc for the list. I've also tried "when", but I think I'm not finding the correct syntax or way to do it,

I really appreciate the help.