Collectable.into
You're seeing just the function
into
, go back to Collectable module for more information.
Specs
Returns an initial accumulator and a "collector" function.
Receives a collectable
which can be used as the initial accumulator that will
be passed to the function.
The collector function receives a term and a command and injects the term into
the collectable accumulator on every {:cont, term}
command.
:done
is passed as a command when no further values will be injected. This
is useful when there's a need to close resources or normalizing values. A
collectable must be returned when the command is :done
.
If injection is suddenly interrupted, :halt
is passed and the function
can return any value as it won't be used.
For examples on how to use the Collectable
protocol and into/1
see the
module documentation.