And thank you for asking a related question, otherwise using :reduce wouldn’t have come to mind.
:reduce