diff options
| author | Akshay Nair <phenax5@gmail.com> | 2022-01-24 19:19:15 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2022-01-24 19:19:15 +0530 |
| commit | db497bb9950648c056c079c591b239ad4932b5c9 (patch) | |
| tree | a554e54f9a3b0d7d7373874c508831e52ee33416 /src/eval | |
| parent | a4e2b5b44823571a693ad47250e40efca5f7fe10 (diff) | |
| download | elxr-db497bb9950648c056c079c591b239ad4932b5c9.tar.gz elxr-db497bb9950648c056c079c591b239ad4932b5c9.zip | |
feat(parser): implements min-max quantifier parser
Diffstat (limited to '')
| -rw-r--r-- | src/eval/index.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/eval/index.ts b/src/eval/index.ts index 8e162b4..ed757e7 100644 --- a/src/eval/index.ts +++ b/src/eval/index.ts @@ -1,7 +1,7 @@ import { identity, pipe } from 'fp-ts/function' import { filter, takeLeftWhile, zip, zipWith } from 'fp-ts/Array' import * as Option from 'fp-ts/Option' -import { Expr, ListExpr } from '../types' +import { index, Expr, ListExpr } from '../types' import { match } from '../utils' export interface MatchGroupIndexed<T = any> { @@ -18,8 +18,6 @@ const group = <T>(value: T, index: number): MatchGroupIndexed<T> => ({ index, }) -type index = number - const indexed = <T>(ls: T[]): Array<[number, T]> => ls.map((x, i) => [i, x]) const accumulateSkip = () => { |
