Jon Strabala I think you are mixing up languages.
Inline functions are only made of one N1QL expression, and that's it.
Think of them as a named Common Table Expression.
There's nothing to be implemented here - it's already available.
If you are asking for a N1QL function that has local variables and return statements, that's not a low hanging fruit.
It requires a whole host of new parser rules, a new host of algebra types, and a completely new language runner.
I would suggest you check the 6.5 beta documentation for
The example in the docs does in fact use local variables and return.
Unless I hear from you otherwise in the very near future, I am going to close this as already implemented.