1 importJava "java.util.Iterator" where
4 hasNext :: T a -> <Proc> Boolean
5 next :: T a -> <Proc> a
6 remove :: T a -> <Proc> ()
9 iter :: (a -> <e> b) -> T a -> <Proc,e> ()
20 iterB :: (a -> <e> Boolean) -> T a -> <Proc,e> Boolean
31 filter :: (a -> <e> Boolean) -> T a -> <Proc,e> ()
44 mapFirst :: (a -> <e> Maybe b) -> T a -> <Proc,e> Maybe b
45 mapFirst f it = loop ()
49 then match f (next it) with
55 fold :: (a -> b -> <e> a) -> a -> T b -> <Proc,e> a
56 fold f init it = loop init
60 then loop (f cur (next it))
63 importJava "java.lang.Iterable" where
66 iterator :: Iterable a -> <Proc> T a