| Maintainer | Toshio Ito <[email protected]> |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Greskell.AsIterator
Description
Since: 0.1.2.0
Synopsis
- class AsIterator a where
- type IteratorItem a
Documentation
class AsIterator a Source #
Types that are converted to an iterator by
org.apache.tinkerpop.gremlin.util.iterator.IteratorUtils.asIterator
method. In fact, that method can convert any type to an iterator,
but greskell limits types to which the conversion is applicable.
Associated with this type-class is IteratorItem. IteratorItem
type family is association of type a and the type of its item
when type a is converted to an iterator.
IteratorItem rule of thumb:
IteratorandIterabletypes likeList,StreamandGraphTraversalare converted to their element types.Maptype is converted to itsMap.Entry. In greskell,Map.Entryis expressed asGMapEntry.- Other types are converted to themselves.
Caveat:
Associated Types
type IteratorItem a Source #