import { splitWhen } from "https://deno.land/x/rambda@v9.1.0/immutable.d.ts";
It splits list
to two arrays according to a predicate
function.
The first array contains all members of list
before predicate
returns true
.
Parameters
predicate: Predicate<T>