| Maintainer | Toshio Ito <debug.ito@gmail.com> |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Greskell.AsIterator
Description
Since: 0.1.2.0
- 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 #
Instances
| AsIterator Bool Source # | |
| AsIterator Char Source # | |
| AsIterator Double Source # | |
| AsIterator Float Source # | |
| AsIterator Int Source # | |
| AsIterator Int8 Source # | |
| AsIterator Int16 Source # | |
| AsIterator Int32 Source # | |
| AsIterator Int64 Source # | |
| AsIterator Integer Source # | |
| AsIterator Natural Source # | |
| AsIterator Word Source # | |
| AsIterator Word8 Source # | |
| AsIterator Word16 Source # | |
| AsIterator Word32 Source # | |
| AsIterator Word64 Source # | |
| AsIterator () Source # | |
| AsIterator Scientific Source # | |
| AsIterator Text Source # | |
| AsIterator Text Source # | |
| AsIterator IntSet Source # | |
| AsIterator [a] Source # | |
| AsIterator a => AsIterator (Maybe a) Source # | |
| Integral a => AsIterator (Ratio a) Source # | |
| AsIterator (IntMap v) Source # | |
| AsIterator (Seq a) Source # | |
| AsIterator (Set a) Source # | |
| AsIterator (HashSet a) Source # | |
| AsIterator (Vector a) Source # | |
| AsIterator (HashMap k v) Source # | |
| AsIterator (Map k v) Source # | |
| AsIterator (GMapEntry k v) Source # | |
| AsIterator (GMap c k v) Source # | |