CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 12:26:26 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=c9a82a6cc18397e75a6803f0924d7e6f89e5e6549e9a4842c22e6313112ad03da%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22XXZwtrUMIZHSd6djFFBHpXTDFXGr2mF1%22%3B%7D; HttpOnly; Path=/
cf-ray: 98ce5887df9520c5-BLR
export class Multiset<T> { private map: Map<T, Number> = new Map(); - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class Multiset<T> {
- private map: Map<T, Number> = new Map();
- constructor(items: Array<T> = []) {
- items.forEach((item: T) => this.add(item));
- }
- add(key: T, count: number = 1) : number {
- var val = (this.get(key) || 0) + count;
- this.map.set(key, val);
- return val;
- }
- get(key: T): number | undefined {
- if (this.map.has(key)) {
- return this.map.get(key)!.valueOf();
- }
- return undefined;
- }
- entries(): Array<[T, number]> {
- var results: Array<[T, number]> = [];
- this.map.forEach((count: Number, key: T) => {
- results.push([key, count.valueOf()]);
- });
- return results;
- }
- toString(): string {
- return this.map.toString();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Exploit 500$ in 15 Minutes⭐⭐
Java | 2 sec ago | 0.10 KB
-
⭐ Instant BTC Profit Method ✅ NEVER SEEN BEFO...
JavaScript | 4 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 3
JavaScript | 11 sec ago | 0.24 KB
-
⭐⭐⭐Profit Method⭐⭐
Java | 13 sec ago | 0.10 KB
-
⭐✅ MAKE $2000 INSTANTLY ✅ NEVER SEEN BEFORE ⭐...
JavaScript | 14 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ L
JavaScript | 22 sec ago | 0.24 KB
-
⭐⭐⭐Exploit 500$ in 15 Minutes⭐⭐
Java | 23 sec ago | 0.10 KB
-
⭐ Free Crypto Method ✅ NEVER SEEN BEFORE ⭐⭐⭐
JavaScript | 24 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand