Subscribe to America's largest dictionary and get thousands more definitions and advanced search—ad free!The filter method filters the collection using the given callback, keeping only those items that pass a given truth expérience:The flatMap method iterates through the collection and passes each value to the given closure. The closure is free