Splits array into two arrays based on predicate
Function to test elements
Array to partition
Tuple of [matching, non-matching] arrays
Splits array into two arrays based on predicate