Make a list continuous!
Builtin
Husk:
…

Try it online!
I bet this builtin exists in more than one language, so I made this a community wiki, just add in more languages where this is a builtin if you know them!