Skip to content

Commit

Permalink
wtff
Browse files Browse the repository at this point in the history
  • Loading branch information
gnlow committed Sep 16, 2023
1 parent bdafa9f commit 5651142
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
3 changes: 1 addition & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"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",
"util/": "./src/util/"
"$util": "./src/util/mod.ts"
}
}
3 changes: 1 addition & 2 deletions src/expand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { call, expandable } from "./func/mod.ts"

import { match, P } from "ts-pattern"
import { $ as Iter } from "iteruyo"
import { $, $a, $b } from "util/select.ts"
import { f } from "util/f.ts"
import { $, $a, $b, f } from "$util"
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/select.ts"
import { $_ } from "$util"

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

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

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

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

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/select.ts"
import { num$a, num$b } from "$util"

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/select.ts"
import { $_ } from "$util"

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/select.ts"
import { $, $a, $b } from "$util"

export const run = (expr: Expr): Expr => {
return match(expr)
Expand Down
2 changes: 2 additions & 0 deletions src/util/mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "./f.ts"
export * from "./select.ts"
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/f.ts"
import { f } from "$util"

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/f.ts"
import { f } from "$util"

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/f.ts"
import { f } from "$util"

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

0 comments on commit 5651142

Please sign in to comment.