Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/vim/mod.ts>mzeval

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

Evaluate MzScheme expression {expr} and return its result converted to Vim data structures. Numbers and strings are returned as they are. Pairs (including lists and improper lists) and vectors are returned as Vim |Lists|. Hash tables are represented as Vim |Dictionary| type with keys converted to strings. All other types are converted to string with display function. Examples: :mz (define l (list 1 2 3)) :mz (define h (make-hash)) (hash-set! h "list" l) :echo mzeval("l") :echo mzeval("h") Can also be used as a |method|: GetExpr()->mzeval() {only available when compiled with the |+mzscheme| feature}

Parameters

denops: Denops
expr: unknown

Returns

Promise<unknown>