import { Collection } from "https://deno.land/x/revoltio@v1.0.0/src/lib.ts";
Partitions the collection into two collections where the first collection contains the items that passed and the second contains the items that failed.
Returns
[Collection<K2, V>, Collection<Exclude<K, K2>, V>]
Parameters
fn: () => value is V2
value: V,
key: K,
collection: this,
Returns
[Collection<K, V2>, Collection<K, Exclude<V, V2>>]
Returns
[Collection<K, V>, Collection<K, V>]