I would like to bring to your attention a little library for a functional approach to analysis in ROOT.
You can have a look at the details here:
PS. There is a bit more than a functional approach to data processing and is related to histogram lifetime handling - but this is really a side functioanlity.
Nice to see different explorations of the design space!