Making Beam Ends Join

Is it possible for Dynamo to force / make upon mass, multiple beams join, where some fall slightly short or slightly oversail?

How can 100’s of these beams be forced to join, whether a slight extension or shortening?