Maintainer | Toshio Ito <debug.ito@gmail.com> |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Since: greskell-core-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:
Iterator
andIterable
types likeList
,Stream
andGraphTraversal
are converted to their element types.Map
type is converted to itsMap.Entry
. In greskell,Map.Entry
is expressed asGMapEntry
.- Other types are converted to themselves.
Caveat:
type IteratorItem a Source #