function collectByimport { collectBy } from "https://dotland.deno.dev/x/rambda@9.4.1/index.d.ts"; collectBy<T, K extends PropertyKey>(keyFn: (value: T) => K, list: T[]): T[][]collectBy<T, K extends PropertyKey>(keyFn: (value: T) => K): (list: T[]) => T[][]Type ParametersTK extends PropertyKeyParameterskeyFn: (value: T) => Klist: T[]ReturnsT[][]Type ParametersTK extends PropertyKeyParameterskeyFn: (value: T) => KReturns(list: T[]) => T[][]