import { type Dictionary } from "https://deno.land/x/bencodex@0.2.2/src/types.ts";
Represents a Bencodex dictionary. It basically behaves like a read-only
Map<Key, Value>
, but it is not necessarily a Map
instance.
Methods
has(key: Key): boolean
Checks if the given key is present in this dictionary.
keys(): Iterable<Key>
Gets an iterable object which iterates over the keys in this dictionary.
values(): Iterable<Value>
Gets an iterable object which iterates over the values in this dictionary.
Gets an iterable object which iterates over the key-value pairs in this
dictionary. This method is equivalent to Dictionary[Symbol.iterator]()
.