[ library(lists) | The ECLiPSe Libraries | Reference Manual | Alphabetic Index ]

splice(+Odds, +Evens, -List)

Merge two lists by interleaving the elements

Description

Create a new list by alternating elements from two input lists, starting with the first. When one input list is longer, its extra elements form the tail of the result list.

Examples

	splice([1,2,3],[a,b,c],[1,a,2,b,3,c])
	splice([1,2,3],[a,b,c,d,e],[1,a,2,b,3,c,d,e])

See Also

merge / 3