1Dict.lookup(3kaya) Kaya module reference Dict.lookup(3kaya)
2
3
4
6 Dict::lookup - Look up a value in a dictionary.
7
9 Maybe<b> lookup( Dict<a, b> dict, a key )
10
12 dict A dictionary
13
14 key The key to lookup
15
17 Look up a value in a dictionary. Returns nothing if the key does not
18 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.Dict (3kaya)
33 Dict.add (3kaya)
34 Dict.delete (3kaya)
35 Dict.empty (3kaya)
36 Dict.entries (3kaya)
37 Dict.exists (3kaya)
38 Dict.keys (3kaya)
39 Dict.new (3kaya)
40 Dict.vals (3kaya)
41
42
43
44Kaya December 2010 Dict.lookup(3kaya)