select(persons :list.T(Person) age :Int p(:String) :Bool)
:Iter.T(Person)
that selects all persons from a list 'persons' that are older than 'age' and whose names match a predicate 'p'. Use the module 'iter'.Write a function 'iterPrintPerson' that displays an iterator of persons. Combine both functions to print all persons that are older than 18 and that have a name longer than 6 characters.
Mass data:
Let Person = ... Let Persons = ... Let Car = ... Let Cars = ...Work with the following values
tuple "Davide" 25 end tuple "Sabina" 22 end tuple "Gilberto" 60 end tuple "Federica" 3 end tuple "Michele" 26 end tuple "Corsa" 120 "Davide" end tuple "Polo" 110 "Michele" end tuple "320i" 180 "Michele" end tuple "Civic" 170 "Gilberto" end tuple "Spider" 150 "Sabina" endQuery, parametrized with x of type Int, giving an iteration