Markov.ListUtil (markov v1.2.1)
Link to this section Summary
Functions
Splits the list into sequential three-tuples
Link to this section Functions
Link to this function
ttuples(list)
Specs
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}]