Markov.ListUtil (markov v1.0.0)

Link to this section Summary

Functions

Splits the list into sequential three-tuples

Link to this section Functions

Specs

ttuples(list()) :: list()

Splits the list into sequential three-tuples

Example

iex> Markov.ListUtil.ttuples([1, 2, 3, 4, 5, 6])
[{1, 2, 3}, {2, 3, 4}, {3, 4, 5}, {4, 5, 6}]