Skip to content

Commit

Permalink
add mod file for bulk export
Browse files Browse the repository at this point in the history
  • Loading branch information
N8Brooks committed Oct 23, 2021
1 parent 98efbf0 commit 612508b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ not matter and elements are chosen without replacement.

```ts
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
import { combinations } from "https://deno.land/x/combinatorics/combinations.ts";
import { combinations } from "https://deno.land/x/combinatorics/mod.ts";

const sequences = [...combinations(2, [1, 2, 3, 4])];

Expand All @@ -47,7 +47,7 @@ the length of the `iterable` is used.
<!-- deno-fmt-ignore -->
```ts
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
import { permutations } from "https://deno.land/x/combinatorics/permutations.ts";
import { permutations } from "https://deno.land/x/combinatorics/mod.ts";

const sequences = [...permutations(2, [1, 2, 3, 4])];

Expand All @@ -66,7 +66,7 @@ important and elements are chosen with replacement.

```ts
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
import { combinationsWithReplacement } from "https://deno.land/x/combinatorics/combinations_with_replacement.ts";
import { combinationsWithReplacement } from "https://deno.land/x/combinatorics/mod.ts";

const sequences = [...combinationsWithReplacement(2, [1, 2, 3, 4])];

Expand Down Expand Up @@ -96,7 +96,7 @@ replacement of `iterables[0]` with the given `r`.
<!-- deno-fmt-ignore -->
```ts
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
import { product } from "https://deno.land/x/combinatorics/product.ts";
import { product } from "https://deno.land/x/combinatorics/mod.ts";

const sequences = [...product(2, [1, 2, 3, 4])];

Expand All @@ -116,7 +116,7 @@ for the yielded `Array`.
<!-- deno-fmt-ignore -->
```ts
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
import { product } from "https://deno.land/x/combinatorics/product.ts";
import { product } from "https://deno.land/x/combinatorics/mod.ts";

const sequences = [...product(1, [1, 2, 3], [4, 5, 6], [7, 8, 9])];

Expand All @@ -141,7 +141,7 @@ first subset is the empty set given when `r = 0`.

```ts
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
import { powerSet } from "https://deno.land/x/combinatorics/power_set.ts";
import { powerSet } from "https://deno.land/x/combinatorics/mod.ts";

const sequences = [...powerSet([1, 2, 3])];

Expand Down
7 changes: 7 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This module is browser compatible.

export * from "./combinations.ts";
export * from "./permutations.ts";
export * from "./combinations_with_replacement.ts";
export * from "./product.ts";
export * from "./power_set.ts";

0 comments on commit 612508b

Please sign in to comment.