| Safe Haskell | None |
|---|
CPython.Protocols.Iterator
- class Object a => Iterator a where
- toIterator :: a -> SomeIterator
- data SomeIterator
- castToIterator :: Object a => a -> IO (Maybe SomeIterator)
- next :: Iterator iter => iter -> IO (Maybe SomeObject)
Documentation
class Object a => Iterator a whereSource
Methods
toIterator :: a -> SomeIteratorSource
data SomeIterator Source
Instances
castToIterator :: Object a => a -> IO (Maybe SomeIterator)Source