PelemayFp.BinaryMerger (PelemayFp v0.1.2) View Source

Inserts a given consecutive list of tuples of a Range, count and a list into another one.

Link to this section Summary

Functions

Inserts a given consecutive list of tuples of a Range, count and a list into another one.

Link to this section Functions

Specs

Inserts a given consecutive list of tuples of a Range, count and a list into another one.

Examples

iex> PelemayFp.BinaryMerger.insert([{1..2, 2, [1, 2]}], [{5..6, 2, [5, 6]}])
[{1..2, 2, [1, 2]}, {5..6, 2, [5, 6]}]

iex> PelemayFp.BinaryMerger.insert([{1..2, 2, [1, 2]}, {5..6, 2, [5, 6]}], [{3..4, 2, [3, 4]}])
[{1..6, 6, [1, 2, 3, 4, 5, 6]}]