Skip to content

Riffle

Riffle(list1, list2)

insert elements of list2 between the elements of list1.

Examples

>> Riffle({a, b, c}, x)
{a,x,b,x,c}
>> Riffle({a, b, c}, {x, y, z})
{a,x,b,y,c,z}

Implementation status

  • ✅ - full supported

Github