import { dropRepeats } from "https://deno.land/x/fae@v1.1.1/dropRepeats.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]
import { dropRepeats } from "https://deno.land/x/fae@v1.1.1/dropRepeats.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]