Iteraptable protocol (iteraptor v1.15.0)
View SourceThe 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.
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
Types
@type t() :: term()
All the types that implement this protocol.
Functions
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
Returns a type understood by Iteraptable