Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
The SequenceIter
struct is an opaque data type representing an
iterator pointing into a Sequence
.
- newtype SequenceIter = SequenceIter (ManagedPtr SequenceIter)
- noSequenceIter :: Maybe SequenceIter
- sequenceIterCompare :: (HasCallStack, MonadIO m) => SequenceIter -> SequenceIter -> m Int32
- sequenceIterGetPosition :: (HasCallStack, MonadIO m) => SequenceIter -> m Int32
- sequenceIterIsBegin :: (HasCallStack, MonadIO m) => SequenceIter -> m Bool
- sequenceIterIsEnd :: (HasCallStack, MonadIO m) => SequenceIter -> m Bool
Exported types
newtype SequenceIter Source #
Methods
compare
:: (HasCallStack, MonadIO m) | |
=> SequenceIter |
|
-> SequenceIter |
|
-> m Int32 | Returns: a negative number if |
Returns a negative number if a
comes before b
, 0 if they are equal,
and a positive number if a
comes after b
.
The a
and b
iterators must point into the same sequence.
Since: 2.14
getPosition
sequenceIterGetPosition Source #
:: (HasCallStack, MonadIO m) | |
=> SequenceIter |
|
-> m Int32 | Returns: the position of |
Returns the position of iter
Since: 2.14
isBegin
:: (HasCallStack, MonadIO m) | |
=> SequenceIter |
|
-> m Bool | Returns: whether |
Returns whether iter
is the begin iterator
Since: 2.14
isEnd
:: (HasCallStack, MonadIO m) | |
=> SequenceIter |
|
-> m Bool | Returns: Whether |
Returns whether iter
is the end iterator
Since: 2.14