Hi,
I am trying to figure out the following:
I want an easy way to create a ring such as
(ring 1, 2, 2, 3, 3, 4, 4, 5)
My idea is firsty to make a line
r = (line 1,5)
double secondly all values of the resulting ring:
s = r.? # result shoud be => (ring 1, 1, 2, 2, 3, 3, 4, 4)
and then thirdly get rid of the first and the last element:
s.drop(0).butlast
But I don’t know how to achieve step number 2. Can anybody help?
Cheers
Martin