Skip to content

Commit

Permalink
whyyyyyyyyyyy
Browse files Browse the repository at this point in the history
  • Loading branch information
gnlow committed Sep 17, 2023
1 parent 5651142 commit a9cdf42
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 14 deletions.
3 changes: 1 addition & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"imports": {
"ts-pattern": "npm:[email protected]",
"iteruyo": "https://deno.land/x/[email protected]/mod.ts",
"std/assert": "https://deno.land/[email protected]/assert/mod.ts",
"$util": "./src/util/mod.ts"
"std/assert": "https://deno.land/[email protected]/assert/mod.ts"
}
}
2 changes: 1 addition & 1 deletion src/expand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { call, expandable } from "./func/mod.ts"

import { match, P } from "ts-pattern"
import { $ as Iter } from "iteruyo"
import { $, $a, $b, f } from "$util"
import { $, $a, $b, f } from "./util/mod.ts"
export * from "iteruyo"

class LazyArray<T> {
Expand Down
2 changes: 1 addition & 1 deletion src/func/and.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Expr, any } from "../Expr.ts"

import { match } from "ts-pattern"
import { $_ } from "$util"
import { $_ } from "../util/mod.ts"

export const and = (a: Expr, b: Expr): Expr =>
match([a, b])
Expand Down
3 changes: 1 addition & 2 deletions src/func/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import {
} from "./math.ts"

import { match, P } from "ts-pattern"
import { $, $_, $a, $b } from "$util"
import { f } from "$util"
import { f, $, $_, $a, $b } from "../util/mod.ts"

export const call = (query: Expr, expr: Expr): Expr => {
return match([query, expr])
Expand Down
3 changes: 1 addition & 2 deletions src/func/join.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Expr } from "../Expr.ts"

import { match } from "ts-pattern"
import { str$a, str$b } from "$util"
import { f } from "$util"
import { f, str$a, str$b } from "../util/mod.ts"

export const join = (a: Expr, b: Expr): Expr =>
match([a, b])
Expand Down
2 changes: 1 addition & 1 deletion src/func/math.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Expr } from "../Expr.ts"

import { match } from "ts-pattern"
import { num$a, num$b } from "$util"
import { num$a, num$b } from "../util/mod.ts"

const math =
(name: string, func: (a: number, b: number) => number) =>
Expand Down
2 changes: 1 addition & 1 deletion src/func/or.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Expr, any } from "../Expr.ts"

import { match } from "ts-pattern"
import { $_ } from "$util"
import { $_ } from "../util/mod.ts"

export const or = (a: Expr, b: Expr): Expr =>
match([a, b])
Expand Down
2 changes: 1 addition & 1 deletion src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Expr } from "./Expr.ts"
import { and, call } from "./func/mod.ts"

import { match, P } from "ts-pattern"
import { $, $a, $b } from "$util"
import { $, $a, $b } from "./util/mod.ts"

export const run = (expr: Expr): Expr => {
return match(expr)
Expand Down
2 changes: 1 addition & 1 deletion test/arrow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
} from "std/assert"

import { call, any } from "../src/mod.ts"
import { f } from "$util"
import { f } from "../src/util/mod.ts"

Deno.test("Arrow - Match Literal", () => {
assertEquals(
Expand Down
2 changes: 1 addition & 1 deletion test/call.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
} from "std/assert"

import { call, any } from "../src/mod.ts"
import { f } from "$util"
import { f } from "../src/util/mod.ts"

Deno.test("Call - Ref - And", () => {
assertEquals(
Expand Down
2 changes: 1 addition & 1 deletion test/expand.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { assertEquals } from "std/assert"

import { Expr, expand, $ as Iter, any } from "../src/mod.ts"
import { f } from "$util"
import { f } from "../src/util/mod.ts"

Deno.test("Expand - Literal", () => {
assertEquals(
Expand Down

0 comments on commit a9cdf42

Please sign in to comment.