1.0.4 • Published 11 months ago

@artstesh/collections v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@artstesh/collections

Overview

The basic set of collections for the typescript.

Queue

// interface Student {name: string, age: number}
it("take success", () => {
  const queue = new Queue<string>();
  const item = Forger.create<string>()!;
  //
  queue.put(item);
  const took = queue.take();
  //
  should().string(took).equals(item);
});

Dictionary

// interface Student {name: string, age: number}
it("take success", () => {
  const dictionary = new Dictionary<string>();
  const key = Forger.create<string>()!;
  const value = Forger.create<string>()!;
  dictionary.put(key, value);
  //
  const took = queue.key();
  //
  should().string(took).equals(value);
});

License

This project is under the MIT license

1.0.2

1 year ago

1.0.4

11 months ago

1.0.3

12 months ago

1.0.1

2 years ago

1.0.0

2 years ago