1 import "Iterator" as Iterator
3 importJava "java.util.Set" where
6 contains :: T a -> a -> Boolean
8 isEmpty :: T a -> Boolean
11 iterator :: T a -> Iterator.T a
14 iter :: (a -> <e> ()) -> T a -> <e> ()
15 iter f s = runProc (Iterator.iter f (iterator s))
18 iterB :: (a -> <e> Boolean) -> T a -> <e> Boolean
19 iterB f s = runProc (Iterator.iterB f (iterator s))
22 fold :: (a -> b -> <e> a) -> a -> T b -> <e> a
23 fold f init s = runProc (Iterator.fold f init (iterator s))