Split an iterable into 2 arrays of elements that passed or failed a provided predicate.
Time complexity: O(n)
Space complexity: O(n)
A tuple where the 1st element is an array of elements that passed the predicate (passed) and the 2nd element are the elements that failed the predicate (failed)
Iterable
Split an iterable into 2 arrays of elements that passed or failed a provided type guard.
Time complexity: O(n)
Space complexity: O(n)