list-mux-1.0: List Multiplexing

Safe HaskellSafe-Infered

Data.List.Mux

Contents

Description

This library provides functions for list multiplexing.

Synopsis

Multiplex two lists starting from the left element

mux :: [a] -> [a] -> [a]Source

Two examples follow below:

>>> mux [1,2,3] [4,5,6]
[1,4,2,5,3,6]
>>> mux' [1,2,3] [4,5,6]
[4,1,5,2,6,3]

... or the right element

mux' :: [a] -> [a] -> [a]Source