p The predicate to test against
xs The array to filter
Each element of xs is tested against the predicate p
The returned list contains those elements of xs for which the predicate is true. The predicate function may of course be partially applied for ease of programming.
Naturally, all(p,filter(p,xs)) == any(p,xs)
Signing in to our system allows you to post your contributions and vote on the contributions of others. It will also allow you to get extra perts like having your favorites in the cloud and having your persistent personal notes wherever you go. More will be added as we scale up our services.
By signing in to our system, you agree our Member Terms and Conditions
Sign-in with one of the following services
Please select a screen name for NET SOUP.