Extending curve to surface?

How can I extend curves towards a surface ?

extend query.gh (5.2 KB)

Here is one option.
extend query_v2.gh (9.2 KB)

Cool. Thanks a lot! This is such a basic operation and I wonder why doesn’t have a basic extend component.