Removing intermediate points in GH

Hi, I am sure there should be a component to remove intermediate points along a line. I have few lines and I am looking to create a single line from all of them is there any simple way to do it?
I can do it with some logic but I thought there should be a component somewhere that I am not aware of it. Please advise. I use Rhino 5.

image

there are several ways the easiest is End Points: start end point.gh (5.9 KB)

Spend some time here. There are many components that will do what you’re after in some way or another: