Skip to main content
Module

x/ddc_vim/deps.ts>fn.uniq

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.uniq
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { uniq } = fn;

Remove second and succeeding copies of repeated adjacent {list} items in-place. Returns {list}. If you want a list to remain unmodified make a copy first: :let newlist = uniq(copy(mylist)) The default compare function uses the string representation of each item. For the use of {func} and {dict} see |sort()|. Can also be used as a |method|: mylist->uniq()

Parameters

denops: Denops
list: unknown
optional
func: unknown
optional
dict: unknown

Returns

Promise<unknown>