summaryrefslogtreecommitdiff
path: root/src/test.ts
blob: 8a7d7ffec4d11c6471199eb2602cfda87da616a6 (plain)
1
2
3
4
5
6
7
import { evaluate, lex, parse } from "./lang";
import { createFn } from "./lang";

const adder = createFn("fn(x, map(arr(10,20,30), fn(y, add(x, y))))");

const result = adder(5);
console.log(result);