As discussed here: https://forums.swift.org/t/compiler-optimisations-for-functional-style-collection-algorithms/68291/17