Function partitionArray

Partition an array of values into two arrays based on evaluation of a binary predicate.