Skip to main content
Module

x/rambda/immutable.d.ts>groupWith

Faster and smaller alternative to Ramda
Go to Latest
function groupWith
import { groupWith } from "https://deno.land/x/rambda@v7.0.1/immutable.d.ts";

It returns separated version of list or string input, where separation is done with equality compareFn function.

Parameters

compareFn: (x: T, y: T) => boolean

Returns

(input: readonly T[]) => readonly (readonly T[])[]

Parameters

compareFn: (x: T, y: T) => boolean
input: readonly T[]

Returns

readonly (readonly T[])[]

Parameters

compareFn: (x: T, y: T) => boolean
input: string

Returns

readonly string[]