Skip to main content
Module

x/ddc_vim/deps.ts>fn.remove

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

Without {end}: Remove the item at {idx} from |List| {list} and return the item. With {end}: Remove items from {idx} to {end} (inclusive) and return a |List| with these items. When {idx} points to the same item as {end} a list with one item is returned. When {end} points to an item before {idx} this is an error. See |list-index| for possible values of {idx} and {end}. Example: :echo "last item: " . remove(mylist, -1) :call remove(mylist, 0, 9) Use |delete()| to remove a file. Can also be used as a |method|: mylist->remove(idx)

Parameters

denops: Denops
list: unknown
idx: unknown
optional
end: unknown

Returns

Promise<unknown>