function splitWhenimport { splitWhen } from "https://dotland.deno.dev/x/rambda@9.4.1/files/index.d.ts"; splitWhen<T, U>(predicate: Predicate<T>, list: U[]): (U[])[]splitWhen<T>(predicate: Predicate<T>): <U>(list: U[]) => (U[])[]Type ParametersTUParameterspredicate: Predicate<T>list: U[]Returns(U[])[]Type ParametersTParameterspredicate: Predicate<T>Returns<U>(list: U[]) => (U[])[]