Standard LibraryFunctionsfilterOn this pagefilter filter(Object container, Object f) -> Object Selects elements satisfying a predicate. Parameters container: The source container. f: The predicate to test. Returns A new container of matching elements. Example filter([1, 2, 3, 4], odd)//-> [1, 3]