Skip to main content
Module

x/fae/mod.ts>dropRepeats

A functional module for Deno inspired from Ramda.
Latest
variable dropRepeats
import { dropRepeats } from "https://deno.land/x/fae@v1.1.1/mod.ts";

Returns a new list without any consecutively repeating elements. Fae.equals is used for comparison

 Fae.dropRepeats([1, 1, 1, 2, 3, 4, 4, 2, 2]); //=> [1, 2, 3, 4, 2]

type

DropRepeats