import { mzeval } from "https://deno.land/x/denops_std@v5.2.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")
Note that in a :def
function local variables are not visible
to {expr}.
Can also be used as a method
:
GetExpr()->mzeval()
only available when compiled with the +mzscheme
feature
Parameters
denops: Denops