Skip to main content
Module

x/denops_std/function/mod.ts>call

📚 Standard module for denops.vim
Go to Latest
function call
import { call } from "https://deno.land/x/denops_std@v3.6.0/function/mod.ts";

Call function {func} with the items in |List| {arglist} as arguments. {func} can either be a |Funcref| or the name of a function. a:firstline and a:lastline are set to the cursor line. Returns the return value of the called function. {dict} is for functions with the "dict" attribute. It will be used to set the local variable "self". |Dictionary-function| Can also be used as a |method|: GetFunc()->call([arg, arg], dict)

Parameters

denops: Denops
func: unknown
arglist: unknown
optional
dict: unknown

Returns

Promise<unknown>