Note: we use linked sets and maps to preserve order. Scala currently has no immutable linked
collections, so we use mutable ones (which should also improve performance). Calling .toMap
to make them immutable would destroy the order, so we simply return them, but as an immutable
interface. Malicious users could still downcast and mutate. Meh.
Reads result of the api.php query above.
Note: we use linked sets and maps to preserve order. Scala currently has no immutable linked collections, so we use mutable ones (which should also improve performance). Calling .toMap to make them immutable would destroy the order, so we simply return them, but as an immutable interface. Malicious users could still downcast and mutate. Meh.