summaryrefslogtreecommitdiff
path: root/test/test.ts
blob: 672fb4e2f17c6f29353e3d121c949da46b32cfa6 (plain)
1
2
3
4
5
6
7
8
9
10
import { createFn } from "../src";

const KS_boolToBin = "fn(b, ?(b, 1, 0))";

const boolArrToBinaryArr = createFn<[boolean[]]>()(
  `fn(boolArr, map(boolArr, ${KS_boolToBin}))`
);

const result = boolArrToBinaryArr([true, false, true]);
console.log(result);