1Dict.lookup(3kaya) Kaya module reference Dict.lookup(3kaya)
2
3
4
6 Dict::lookup - Look up a value in a tiny dictionary.
7
9 Maybe<b> lookup( TinyDict<a, b> dict, a key )
10
12 dict A tiny dictionary
13
14 key The key to lookup
15
17 Look up a value in a tiny dictionary. Returns nothing if the key does
18 not exist, or just(x) if it maps to x
19
20
22 Kaya standard library by Edwin Brady, Chris Morris and others
23 (kaya@kayalang.org). For further information see http://kayalang.org/
24
26 The Kaya standard library is free software; you can redistribute it
27 and/or modify it under the terms of the GNU Lesser General Public
28 License (version 2.1 or any later version) as published by the Free
29 Software Foundation.
30
32 Dict.TinyDict (3kaya)
33 Dict.add_1 (3kaya)
34 Dict.delete_1 (3kaya)
35 Dict.empty_1 (3kaya)
36 Dict.entries_1 (3kaya)
37 Dict.exists_1 (3kaya)
38 Dict.keys_1 (3kaya)
39 Dict.newTiny (3kaya)
40 Dict.vals_1 (3kaya)
41
42
43
44Kaya December 2010 Dict.lookup(3kaya)