Skip to content

Commit 612508b

Browse files
committed
add mod file for bulk export
1 parent 98efbf0 commit 612508b

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ not matter and elements are chosen without replacement.
2424

2525
```ts
2626
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
27-
import { combinations } from "https://deno.land/x/combinatorics/combinations.ts";
27+
import { combinations } from "https://deno.land/x/combinatorics/mod.ts";
2828

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

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

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

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

6767
```ts
6868
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
69-
import { combinationsWithReplacement } from "https://deno.land/x/combinatorics/combinations_with_replacement.ts";
69+
import { combinationsWithReplacement } from "https://deno.land/x/combinatorics/mod.ts";
7070

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

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

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

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

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

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

142142
```ts
143143
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
144-
import { powerSet } from "https://deno.land/x/combinatorics/power_set.ts";
144+
import { powerSet } from "https://deno.land/x/combinatorics/mod.ts";
145145

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

mod.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// This module is browser compatible.
2+
3+
export * from "./combinations.ts";
4+
export * from "./permutations.ts";
5+
export * from "./combinations_with_replacement.ts";
6+
export * from "./product.ts";
7+
export * from "./power_set.ts";

0 commit comments

Comments
 (0)