Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove collections/mod.ts #2321

Merged
merged 5 commits into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 45 additions & 45 deletions collections/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion collections/aggregate_groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { mapEntries } from "./map_entries.ts";
* Applies the given aggregator to each group in the given Grouping, returning the results together with the respective group keys
*
* ```ts
* import { aggregateGroups } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { aggregateGroups } from "https://deno.land/std@$STD_VERSION/collections/aggregate_groups.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const foodProperties = {
Expand Down
2 changes: 1 addition & 1 deletion collections/associate_by.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Example:
*
* ```ts
* import { associateBy } from "https://deno.land/std@$STD_VERSION/collections/mod.ts"
* import { associateBy } from "https://deno.land/std@$STD_VERSION/collections/associate_by.ts"
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const users = [
Expand Down
2 changes: 1 addition & 1 deletion collections/associate_with.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Example:
*
* ```ts
* import { associateWith } from "https://deno.land/std@$STD_VERSION/collections/mod.ts"
* import { associateWith } from "https://deno.land/std@$STD_VERSION/collections/associate_with.ts"
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const names = [ 'Kim', 'Lara', 'Jonathan' ]
Expand Down
2 changes: 1 addition & 1 deletion collections/chunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Example:
*
* ```ts
* import { chunk } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { chunk } from "https://deno.land/std@$STD_VERSION/collections/chunk.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const words = [ 'lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consetetur', 'sadipscing' ]
Expand Down
2 changes: 1 addition & 1 deletion collections/deep_merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const { hasOwn } = Object;
* Example:
*
* ```ts
* import { deepMerge } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { deepMerge } from "https://deno.land/std@$STD_VERSION/collections/deep_merge.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const a = {foo: true}
Expand Down
2 changes: 1 addition & 1 deletion collections/distinct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Example:
*
* ```ts
* import { distinct } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { distinct } from "https://deno.land/std@$STD_VERSION/collections/distinct.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const numbers = [ 3, 2, 5, 2, 5 ]
Expand Down
2 changes: 1 addition & 1 deletion collections/distinct_by.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Example:
*
* ```ts
* import { distinctBy } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { distinctBy } from "https://deno.land/std@$STD_VERSION/collections/distinct_by.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const names = [ 'Anna', 'Kim', 'Arnold', 'Kate' ]
Expand Down
2 changes: 1 addition & 1 deletion collections/drop_last_while.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Example:
* ```ts
* import { dropLastWhile } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { dropLastWhile } from "https://deno.land/std@$STD_VERSION/collections/drop_last_while.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const numbers = [22, 30, 44];
Expand Down
2 changes: 1 addition & 1 deletion collections/drop_while.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Example:
*
* ```ts
* import { dropWhile } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { dropWhile } from "https://deno.land/std@$STD_VERSION/collections/drop_while.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const numbers = [ 3, 2, 5, 2, 5 ]
Expand Down
2 changes: 1 addition & 1 deletion collections/filter_entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Example:
*
* ```ts
* import { filterEntries } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { filterEntries } from "https://deno.land/std@$STD_VERSION/collections/filter_entries.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const menu = {
Expand Down
2 changes: 1 addition & 1 deletion collections/filter_keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Example:
*
* ```ts
* import { filterKeys } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { filterKeys } from "https://deno.land/std@$STD_VERSION/collections/filter_keys.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const menu = {
Expand Down
2 changes: 1 addition & 1 deletion collections/filter_values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Example:
*
* ```ts
* import { filterValues } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { filterValues } from "https://deno.land/std@$STD_VERSION/collections/filter_values.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* type Person = { age: number };
Expand Down
2 changes: 1 addition & 1 deletion collections/find_single.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Example:
*
* ```ts
* import { findSingle } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { findSingle } from "https://deno.land/std@$STD_VERSION/collections/find_single.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const bookings = [
Expand Down
2 changes: 1 addition & 1 deletion collections/first_not_nullish_of.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Example:
*
* ```ts
* import { firstNotNullishOf } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { firstNotNullishOf } from "https://deno.land/std@$STD_VERSION/collections/first_not_nullish_of.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const tables = [
Expand Down
2 changes: 1 addition & 1 deletion collections/group_by.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Example:
*
* ```ts
* import { groupBy } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { groupBy } from "https://deno.land/std@$STD_VERSION/collections/group_by.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* type Person = {
Expand Down
2 changes: 1 addition & 1 deletion collections/includes_value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* Example:
* ```ts
* import { includesValue } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { includesValue } from "https://deno.land/std@$STD_VERSION/collections/includes_value.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const input = {
Expand Down
2 changes: 1 addition & 1 deletion collections/intersect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { filterInPlace } from "./_utils.ts";
* Example:
*
* ```ts
* import { intersect } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { intersect } from "https://deno.land/std@$STD_VERSION/collections/intersect.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const lisaInterests = [ 'Cooking', 'Music', 'Hiking' ]
Expand Down
2 changes: 1 addition & 1 deletion collections/join_to_string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type JoinToStringOptions = {
* Example:
*
* ```ts
* import { joinToString } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { joinToString } from "https://deno.land/std@$STD_VERSION/collections/join_to_string.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const users = [
Expand Down
2 changes: 1 addition & 1 deletion collections/map_entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Example:
*
* ```ts
* import { mapEntries } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { mapEntries } from "https://deno.land/std@$STD_VERSION/collections/map_entries.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const usersById = {
Expand Down
2 changes: 1 addition & 1 deletion collections/map_keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Example:
*
* ```ts
* import { mapKeys } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { mapKeys } from "https://deno.land/std@$STD_VERSION/collections/map_keys.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const counts = { a: 5, b: 3, c: 8 }
Expand Down
2 changes: 1 addition & 1 deletion collections/map_not_nullish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Example:
*
* ```ts
* import { mapNotNullish } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { mapNotNullish } from "https://deno.land/std@$STD_VERSION/collections/map_not_nullish.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const people = [
Expand Down
2 changes: 1 addition & 1 deletion collections/map_values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Example:
*
* ```ts
* import { mapValues } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { mapValues } from "https://deno.land/std@$STD_VERSION/collections/map_values.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const usersById = {
Expand Down
2 changes: 1 addition & 1 deletion collections/max_by.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Example:
*
* ```ts
* import { maxBy } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { maxBy } from "https://deno.land/std@$STD_VERSION/collections/max_by.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const people = [
Expand Down
2 changes: 1 addition & 1 deletion collections/max_of.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Example:
*
* ```ts
* import { maxOf } from "https://deno.land/std@$STD_VERSION/collections/mod.ts"
* import { maxOf } from "https://deno.land/std@$STD_VERSION/collections/max_of.ts"
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts"
*
* const inventory = [
Expand Down
2 changes: 1 addition & 1 deletion collections/max_with.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Example:
*
* ```ts
* import { maxWith } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { maxWith } from "https://deno.land/std@$STD_VERSION/collections/max_with.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const people = ["Kim", "Anna", "John", "Arthur"];
Expand Down
2 changes: 1 addition & 1 deletion collections/min_by.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Example:
*
* ```ts
* import { minBy } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { minBy } from "https://deno.land/std@$STD_VERSION/collections/min_by.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts"
*
* const people = [
Expand Down
2 changes: 1 addition & 1 deletion collections/min_of.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Example:
*
* ```ts
* import { minOf } from "https://deno.land/std@$STD_VERSION/collections/mod.ts"
* import { minOf } from "https://deno.land/std@$STD_VERSION/collections/min_of.ts"
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts"
*
* const inventory = [
Expand Down
2 changes: 1 addition & 1 deletion collections/min_with.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Example:
*
* ```ts
* import { minWith } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { minWith } from "https://deno.land/std@$STD_VERSION/collections/min_with.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const people = ["Kim", "Anna", "John"];
Expand Down
50 changes: 0 additions & 50 deletions collections/mod.ts

This file was deleted.

2 changes: 1 addition & 1 deletion collections/partition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Example:
*
* ```ts
* import { partition } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { partition } from "https://deno.land/std@$STD_VERSION/collections/partition.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const numbers = [ 5, 6, 7, 8, 9 ]
Expand Down
2 changes: 1 addition & 1 deletion collections/permutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Example:
*
* ```ts
* import { permutations } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { permutations } from "https://deno.land/std@$STD_VERSION/collections/permutations.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const numbers = [ 1, 2 ]
Expand Down
2 changes: 1 addition & 1 deletion collections/reduce_groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { mapValues } from "./map_values.ts";
* Applies the given reducer to each group in the given Grouping, returning the results together with the respective group keys
*
* ```ts
* import { reduceGroups } from "https://deno.land/std@$STD_VERSION/collections/mod.ts"
* import { reduceGroups } from "https://deno.land/std@$STD_VERSION/collections/reduce_groups.ts"
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const votes = {
Expand Down
2 changes: 1 addition & 1 deletion collections/running_reduce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Example:
*
* ```ts
* import { runningReduce } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { runningReduce } from "https://deno.land/std@$STD_VERSION/collections/running_reduce.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const numbers = [1, 2, 3, 4, 5];
Expand Down
2 changes: 1 addition & 1 deletion collections/sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { randomInteger } from "./_utils.ts";
* Example:
*
* ```ts
* import { sample } from "https://deno.land/std@$STD_VERSION/collections/mod.ts"
* import { sample } from "https://deno.land/std@$STD_VERSION/collections/sample.ts"
* import { assert } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const numbers = [1, 2, 3, 4];
Expand Down
2 changes: 1 addition & 1 deletion collections/sliding_windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Example:
*
* ```ts
* import { slidingWindows } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { slidingWindows } from "https://deno.land/std@$STD_VERSION/collections/sliding_windows.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
* const numbers = [1, 2, 3, 4, 5];
*
Expand Down
2 changes: 1 addition & 1 deletion collections/sort_by.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Example:
*
* ```ts
* import { sortBy } from "https://deno.land/std@$STD_VERSION/collections/mod.ts"
* import { sortBy } from "https://deno.land/std@$STD_VERSION/collections/sort_by.ts"
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const people = [
Expand Down
2 changes: 1 addition & 1 deletion collections/sum_of.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Example:
*
* ```ts
* import { sumOf } from "https://deno.land/std@$STD_VERSION/collections/mod.ts"
* import { sumOf } from "https://deno.land/std@$STD_VERSION/collections/sum_of.ts"
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts"
*
* const people = [
Expand Down
2 changes: 1 addition & 1 deletion collections/take_last_while.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Example:
* ```ts
* import { takeLastWhile } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { takeLastWhile } from "https://deno.land/std@$STD_VERSION/collections/take_last_while.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const arr = [1, 2, 3, 4, 5, 6];
Expand Down
2 changes: 1 addition & 1 deletion collections/take_while.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Example:
* ```ts
* import { takeWhile } from "https://deno.land/std@$STD_VERSION/collections/mod.ts";
* import { takeWhile } from "https://deno.land/std@$STD_VERSION/collections/take_while.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
*
* const arr = [1, 2, 3, 4, 5, 6];
Expand Down
Loading