import { type Dictionary } from "https://deno.land/x/bencodex@0.2.2/mod.ts";
Represents a Bencodex dictionary. It basically behaves like a read-only
Map<Key, Value>
, but it is not necessarily a Map
instance.
Methods
Gets an iterable object which iterates over the key-value pairs in this
dictionary. This method is equivalent to Dictionary[Symbol.iterator]()
.
Calls the given callback function for each key-value pair in this dictionary.