Skip to main content
Module

std/collections/mod.ts

Deno standard library
Go to Latest
File
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
/** Functions for specific common tasks around collection types like `Array` and * `Record`. This module is heavily inspired by `kotlin`s stdlib. * * - All provided functions are **pure**, which also means that they do **not * mutate** your inputs, **returning a new value** instead. * - All functions are importable on their own by referencing their snake_case * named file (e.g. `collections/sort_by.ts`) * * This module re-exports several modules, and importing this module directly * will likely include a lot of code that you might not use. * * Consider importing the function directly. For example to import * {@linkcode groupBy} import the module using the snake cased version of the * module: * * ```ts * import { groupBy } from "https://deno.land/std@$STD_VERSION/collections/group_by.ts"; * ``` * * @module */
// Not sure what's causing this warning? Run `deno info <entry-point-path>` to// analyze the module graph. It's not recommended to import directly from// mod.ts here because it adds a lot of bloat.console.warn( "%c[WARN] deno_std: prefer importing collections/<function_name_in_snake_case>.ts " + "instead of collections/mod.ts", "color: yellow;",);
export * from "./aggregate_groups.ts";export * from "./associate_by.ts";export * from "./associate_with.ts";export * from "./chunk.ts";export * from "./deep_merge.ts";export * from "./distinct.ts";export * from "./distinct_by.ts";export * from "./drop_while.ts";export * from "./filter_entries.ts";export * from "./filter_keys.ts";export * from "./filter_values.ts";export * from "./group_by.ts";export * from "./intersect.ts";export * from "./map_entries.ts";export * from "./map_keys.ts";export * from "./map_not_nullish.ts";export * from "./map_values.ts";export * from "./partition.ts";export * from "./permutations.ts";export * from "./find_single.ts";export * from "./sliding_windows.ts";export * from "./sum_of.ts";export * from "./max_by.ts";export * from "./max_of.ts";export * from "./min_by.ts";export * from "./min_of.ts";export * from "./sort_by.ts";export * from "./union.ts";export * from "./without_all.ts";export * from "./unzip.ts";export * from "./zip.ts";export * from "./join_to_string.ts";export * from "./max_with.ts";export * from "./min_with.ts";export * from "./includes_value.ts";export * from "./take_last_while.ts";export * from "./take_while.ts";export * from "./first_not_nullish_of.ts";export * from "./drop_last_while.ts";export * from "./reduce_groups.ts";export * from "./sample.ts";export * from "./running_reduce.ts";export * from "./binary_heap.ts";