Not the same but this gives me an idea… what if there was a map reduce for doms as a web primitive. Like imagine if I could make a dom (or feed) that was some selection and transformation of another dom

You have just re-invented XLST.

Related discussion to remove XSLT from the web platform: https://github.com/whatwg/html/issues/11523

*XSLT