i'm looking for a way to extend a list of 2 elements that represent boundaries, to the entire range.
for example: input list = [1 ,5,10,15]
output list would be = [1, 2, 3, 4 ,5 , 10 , 11 , 12 ,13 ,14 ,15]
i can make it using the following semipseudo code, but perhaps there is an easier way, more elegant...
 $i = 0;

while $i != length(list)

for ($j = list($i); j++; j<list($i+1)) {

push(@out_list,$j);

};

$i += 2;

};