fun main() {
val numbers = arrayListOf("zero", "one", "two", "three", "four")
println(numbers.filter { it -> it.equals("three") }) /* prints [three] */
}
val studentList = listOf(asha, john, afra, kyle)
val filteredList = studentList.filter { student ->
student.name.startsWith("A")
}
println(filteredList)