Usage of LETTING Clause

Can anybody please tell me about the usage of LETTING Clause with perfect example. In the DP4 doesn’t have any example.

Thank you

Abdul Rahim

Please edit this post and change it to category ‘N1QL’ so that it becomes easier to track.

LETTING clause is used with GROUP BY and comes after GROUP BY