1 import "StandardLibrary" hiding (contains)
3 importJava "gnu.trove.map.hash.THashMap" where
7 create :: () -> <Proc> T a b
8 put :: T a b -> a -> b -> <Proc> Maybe b
9 get :: T a b -> a -> <Proc> Maybe b
11 unsafeGet :: T a b -> a -> <Proc> b
13 contains :: T a b -> a -> <Proc> Boolean
14 size :: T a b -> <Proc> Integer
16 importJava "org.simantics.scl.osgi.map.HashMapUtils" where
17 entries :: T a b -> <Proc> [(a,b)]
19 fromList :: [(a,b)] -> <Proc> T a b
22 for entries (\(k,v) -> do put result k v; ())