]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.osgi/scl/Extras/HashMap.scl
(refs #7560) Deprecated Extras/HashMap
[simantics/platform.git] / bundles / org.simantics.scl.osgi / scl / Extras / HashMap.scl
1 module {
2     deprecated = "Use module MMap instead."
3 }
4
5 import "MMap" as MMap
6
7 type T a b = MMap.T a b
8
9 create :: () -> <Proc> T a b
10 create = MMap.create
11
12 put :: T a b -> a -> b -> <Proc> Maybe b
13 put = MMap.put
14
15 get :: T a b -> a -> <Proc> Maybe b
16 get = MMap.get
17
18 unsafeGet :: T a b -> a -> <Proc> b
19 unsafeGet = MMap.unsafeGet
20     
21 contains :: T a b -> a -> <Proc> Boolean
22 contains = MMap.containsKey
23
24 size :: T a b -> <Proc> Integer
25 size = MMap.size
26     
27 entries :: T a b -> <Proc> [(a,b)]
28 entries = MMap.entries
29
30 fromList :: [(a,b)] -> <Proc> T a b
31 fromList = MMap.fromEntryList