Macaulay2 » Documentation
Packages » Macaulay2Doc :: between(Thing,VisibleList)
next | previous | forward | backward | up | index | toc

between(Thing,VisibleList) -- insert something between elements of a list

Synopsis

Description

Inserts m between each pair of elements of the list or sequence v, returning a list.
i1 : between(55,{a,b,c,d})

o1 = {a, 55, b, 55, c, 55, d}

o1 : List
i2 : concatenate between(",", (1..10) / toString)

o2 = 1,2,3,4,5,6,7,8,9,10

Ways to use this method: