The iter tools data collection classes, made available as a single package. Includes typescript libdefs. Suitable for node or browser environments. Supports native es imports in node > 13.2
.
import {
List,
Map,
Queue,
Set,
} from '@iter-tools/collections';
// OR
const {
List,
Map,
Queue,
Set,
} = require('@iter-tools/collections');
Until Typescript supports package exports you must enable esModuleInterop
to use this module.
API documentation is provided individually for List, Map, Queue, and Set.