I'd prefer to enumerate in this case instead, to avoid an unnecessary array allocation.

I know that's not how transformers like this have been built to date, but it's more of an issue now that we're providing a prebuilt component, where code density is somewhat less important than implementation quality.