this same technique is something jason and i have explored when tackling interesting analytical scenarios, like the calculation of last ever non empty, which also uses the same pattern.
The same result can be achieved by using other methods in this case.