Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
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@v5.0.2/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>