Skip to main content
Module

x/ramda/mod.ts>dropRepeatsWith

:ram: Practical functional Javascript
Latest
variable dropRepeatsWith
import { dropRepeatsWith } from "https://deno.land/x/ramda@v0.27.2/mod.ts";

Returns a new list without any consecutively repeating elements. Equality is determined by applying the supplied predicate to each pair of consecutive elements. The first element in a series of equal elements will be preserved.

Acts as a transducer if a transformer is given in list position.