Dict.3kaya

Langue: en

Version: March 2009 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Dict - Dictionaries

DESCRIPTION

Dictionaries to map keys of one type to values of another type. The Dict.Dict(3kaya) type is generally most useful, but Dict.TinyDict(3kaya) can be used when the number of keys is very small (10 or fewer). The Set(3kaya) module may also be useful, and its Set.HashSet(3kaya) replaces the ExistDict in this module in previous Kaya versions. Looking up and adding values to a dictionary will usually take a constant amount of time regardless of the size of the dictionary, and so these are often more efficient than usings lists.

DATA TYPES

Dict.Dict(3kaya)

Dict.TinyDict(3kaya)

FUNCTIONS

Dict.add(3kaya)

Dict.add_1(3kaya)

Dict.delete(3kaya)

Dict.delete_1(3kaya)

Dict.dict(3kaya)

Dict.empty(3kaya)

Dict.empty_1(3kaya)

Dict.entries(3kaya)

Dict.entries_1(3kaya)

Dict.exists(3kaya)

Dict.exists_1(3kaya)

Dict.keys(3kaya)

Dict.keys_1(3kaya)

Dict.lookup(3kaya)

Dict.lookup_1(3kaya)

Dict.new(3kaya)

Dict.newTiny(3kaya)

Dict.numBuckets(3kaya)

Dict.vals(3kaya)

Dict.vals_1(3kaya)

AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.