View Source Iteraptable protocol (iteraptor v1.14.0)

The protocol specifying how the respective struct might be used within Iteraptor.

Experimental. By implementing this protocol one might change the behaviour of nested objects regarding how they should be iterated through.

Link to this section Summary

Functions

Returns a name of the term to be represented in flatmaps

Converts a term to a collectable

Converts a term to an enumerable

Returns a type understood by Iteraptable

Link to this section Types

Link to this section Functions

@spec name(term :: any()) :: binary()

Returns a name of the term to be represented in flatmaps

@spec to_collectable(term :: any()) :: Collectable.t()

Converts a term to a collectable

@spec to_enumerable(term :: any()) :: Enumerable.t()

Converts a term to an enumerable

@spec type(term :: any()) :: atom()

Returns a type understood by Iteraptable