Simplify map() to a simple loop
Simplify map() to a simple loop

This commit simplifies map() of collections into a simple append-loop. The Swift
optimizer can do a better job optimizing code without unsafe constructs. This
change accelerates the MapReduce benchmark by 2x.

parkera/swift,jtbandes/swift,parkera/swift,gottesmm/swift,rudkx/swift,kperryua/swift,jopamer/swift,SwiftAndroid/swift,bitjammer/swift,stephentyrone/swift,felix91gr/swift,jopamer/swift,IngmarStein/swift,arvedviehweger/swift,tkremenek/swift,tardieu/swift,jopamer/swift,glessard/swift,gmilos/swift,swiftix/swift,huonw/swift,jckarter/swift,hooman/swift,harlanhaskins/swift,modocache/swift,ken0nek/swift,xedin/swift,shajrawi/swift,JGiola/swift,practicalswift/swift,uasys/swift,jopamer/swift,xedin/swift,dduan/swift,codestergit/swift,xedin/swift,JaSpa/swift,amraboelela/swift,uasys/swift,aschwaighofer/swift,manavgabhawala/swift,glessard/swift,LeoShimonaka/swift,tinysun212/swift-windows,tkremenek/swift,felix91gr/swift,bitjammer/swift,djwbrown/swift,Jnosh/swift,hughbe/swift,atrick/swift,zisko/swift,brentdax/swift,zisko/swift,aschwaighofer/swift,OscarSwanros/swift,lorentey/swift,parkera/swift,cbrentharris/swift,devincoughlin/swift,tardieu/swift,jckarter/swift,stephentyrone/swift,danielmartin/swift,apple/swift,kstaring/swift,practicalswift/swift,gregomni/swift,manavgabhawala/swift,nathawes/swift,gmilos/swift,tinysun212/swift-windows,gottesmm/swift,JGiola/swift,jmgc/swift,swiftix/swift,OscarSwanros/swift,KrishMunot/swift,cbrentharris/swift,russbishop/swift,alblue/swift,johnno1962d/swift,IngmarStein/swift,glessard/swift,hughbe/swift,gmilos/swift,kusl/swift,jopamer/swift,jmgc/swift,return/swift,tjw/swift,stephentyrone/swift,brentdax/swift,SwiftAndroid/swift,stephentyrone/swift,rudkx/swift,karwa/swift,airspeedswift/swift,ben-ng/swift,jckarter/swift,rudkx/swift,lorentey/swift,jtbandes/swift,slavapestov/swift,shajrawi/swift,Jnosh/swift,sdulal/swift,johnno1962d/swift,arvedviehweger/swift,OscarSwanros/swift,kperryua/swift,gottesmm/swift,ahoppen/swift,jopamer/swift,jtbandes/swift,brentdax/swift,zisko/swift,stephentyrone/swift,mightydeveloper/swift,swiftix/swift,dduan/swift,huonw/swift,OscarSwanros/swift,glessard/swift,emilstahl/swift,natecook1000/swift,deyton/swift,cbrentharris/swift,felix91gr/swift,tardieu/swift,Jnosh/swift,Jnosh/swift,adrfer/swift,nathawes/swift,tjw/swift,brentdax/swift,russbishop/swift,gregomni/swift,codestergit/swift,atrick/swift,LeoShimonaka/swift,airspeedswift/swift,apple/swift,calebd/swift,natecook1000/swift,OscarSwanros/swift,slavapestov/swift,shajrawi/swift,SwiftAndroid/swift,arvedviehweger/swift,kperryua/swift,CodaFi/swift,roambotics/swift,Ivacker/swift,gribozavr/swift,felix91gr/swift,frootloops/swift,MukeshKumarS/Swift,gribozavr/swift,deyton/swift,emilstahl/swift,russbishop/swift,sdulal/swift,tardieu/swift,allevato/swift,lorentey/swift,jckarter/swift,atrick/swift,apple/swift,KrishMunot/swift,LeoShimonaka/swift,hooman/swift,bitjammer/swift,dduan/swift,SwiftAndroid/swift,milseman/swift,adrfer/swift,kentya6/swift,austinzheng/swift,MukeshKumarS/Swift,frootloops/swift,SwiftAndroid/swift,arvedviehweger/swift,ken0nek/swift,swiftix/swift,allevato/swift,kstaring/swift,JaSpa/swift,jmgc/swift,shahmishal/swift,practicalswift/swift,SwiftAndroid/swift,sdulal/swift,uasys/swift,shajrawi/swift,kstaring/swift,devincoughlin/swift,therealbnut/swift,kperryua/swift,lorentey/swift,swiftix/swift,hughbe/swift,sdulal/swift,karwa/swift,therealbnut/swift,emilstahl/swift,deyton/swift,nathawes/swift,ken0nek/swift,practicalswift/swift,tkremenek/swift,Ivacker/swift,brentdax/swift,xwu/swift,calebd/swift,ken0nek/swift,MukeshKumarS/Swift,frootloops/swift,KrishMunot/swift,airspeedswift/swift,austinzheng/swift,emilstahl/swift,tkremenek/swift,practicalswift/swift,natecook1000/swift,russbishop/swift,return/swift,jckarter/swift,jmgc/swift,natecook1000/swift,devincoughlin/swift,amraboelela/swift,slavapestov/swift,gottesmm/swift,djwbrown/swift,cbrentharris/swift,sschiau/swift,JaSpa/swift,kstaring/swift,jtbandes/swift,JGiola/swift,emilstahl/swift,atrick/swift,devincoughlin/swift,gregomni/swift,bitjammer/swift,tardieu/swift,gmilos/swift,amraboelela/swift,dduan/swift,khizkhiz/swift,deyton/swift,gribozavr/swift,ken0nek/swift,zisko/swift,xwu/swift,ahoppen/swift,sschiau/swift,swiftix/swift,slavapestov/swift,benlangmuir/swift,allevato/swift,hughbe/swift,karwa/swift,cbrentharris/swift,kstaring/swift,mightydeveloper/swift,parkera/swift,slavapestov/swift,kusl/swift,aschwaighofer/swift,khizkhiz/swift,tjw/swift,karwa/swift,kentya6/swift,Ivacker/swift,harlanhaskins/swift,alblue/swift,ben-ng/swift,LeoShimonaka/swift,bitjammer/swift,johnno1962d/swift,danielmartin/swift,codestergit/swift,glessard/swift,modocache/swift,Jnosh/swift,johnno1962d/swift,uasys/swift,kusl/swift,karwa/swift,sdulal/swift,hooman/swift,KrishMunot/swift,austinzheng/swift,kusl/swift,devincoughlin/swift,IngmarStein/swift,stephentyrone/swift,therealbnut/swift,codestergit/swift,gmilos/swift,bitjammer/swift,sschiau/swift,airspeedswift/swift,airspeedswift/swift,xedin/swift,calebd/swift,huonw/swift,JGiola/swift,felix91gr/swift,CodaFi/swift,ben-ng/swift,stephentyrone/swift,aschwaighofer/swift,LeoShimonaka/swift,gribozavr/swift,parkera/swift,johnno1962d/swift,benlangmuir/swift,modocache/swift,KrishMunot/swift,practicalswift/swift,hooman/swift,Ivacker/swift,modocache/swift,uasys/swift,benlangmuir/swift,jckarter/swift,felix91gr/swift,devincoughlin/swift,kperryua/swift,tjw/swift,lorentey/swift,return/swift,allevato/swift,allevato/swift,JaSpa/swift,uasys/swift,practicalswift/swift,ken0nek/swift,hooman/swift,karwa/swift,LeoShimonaka/swift,khizkhiz/swift,deyton/swift,djwbrown/swift,nathawes/swift,slavapestov/swift,russbishop/swift,JGiola/swift,gottesmm/swift,modocache/swift,manavgabhawala/swift,kstaring/swift,manavgabhawala/swift,tjw/swift,frootloops/swift,tkremenek/swift,aschwaighofer/swift,khizkhiz/swift,xedin/swift,ben-ng/swift,apple/swift,dduan/swift,kentya6/swift,modocache/swift,kperryua/swift,hooman/swift,CodaFi/swift,dreamsxin/swift,natecook1000/swift,djwbrown/swift,nathawes/swift,manavgabhawala/swift,roambotics/swift,tardieu/swift,frootloops/swift,khizkhiz/swift,gribozavr/swift,adrfer/swift,jtbandes/swift,mightydeveloper/swift,manavgabhawala/swift,mightydeveloper/swift,harlanhaskins/swift,JaSpa/swift,nathawes/swift,parkera/swift,LeoShimonaka/swift,IngmarStein/swift,benlangmuir/swift,sschiau/swift,therealbnut/swift,alblue/swift,codestergit/swift,atrick/swift,alblue/swift,brentdax/swift,djwbrown/swift,djwbrown/swift,kentya6/swift,OscarSwanros/swift,hughbe/swift,devincoughlin/swift,apple/swift,xedin/swift,tardieu/swift,xedin/swift,practicalswift/swift,zisko/swift,rudkx/swift,JaSpa/swift,mightydeveloper/swift,CodaFi/swift,arvedviehweger/swift,jmgc/swift,felix91gr/swift,slavapestov/swift,adrfer/swift,mightydeveloper/swift,KrishMunot/swift,JaSpa/swift,codestergit/swift,benlangmuir/swift,amraboelela/swift,tinysun212/swift-windows,apple/swift,dduan/swift,kentya6/swift,modocache/swift,parkera/swift,MukeshKumarS/Swift,lorentey/swift,ahoppen/swift,Ivacker/swift,kperryua/swift,swiftix/swift,tinysun212/swift-windows,harlanhaskins/swift,shahmishal/swift,deyton/swift,dduan/swift,allevato/swift,ahoppen/swift,shajrawi/swift,alblue/swift,kusl/swift,roambotics/swift,sschiau/swift,harlanhaskins/swift,MukeshKumarS/Swift,cbrentharris/swift,tkremenek/swift,Jnosh/swift,danielmartin/swift,shahmishal/swift,therealbnut/swift,huonw/swift,ahoppen/swift,roambotics/swift,atrick/swift,austinzheng/swift,shahmishal/swift,therealbnut/swift,ben-ng/swift,shahmishal/swift,khizkhiz/swift,glessard/swift,tjw/swift,gregomni/swift,hooman/swift,aschwaighofer/swift,jopamer/swift,ahoppen/swift,frootloops/swift,arvedviehweger/swift,aschwaighofer/swift,lorentey/swift,IngmarStein/swift,tinysun212/swift-windows,kentya6/swift,IngmarStein/swift,natecook1000/swift,sschiau/swift,Ivacker/swift,milseman/swift,jmgc/swift,KrishMunot/swift,therealbnut/swift,return/swift,tkremenek/swift,gribozavr/swift,sschiau/swift,Ivacker/swift,gmilos/swift,rudkx/swift,ken0nek/swift,milseman/swift,harlanhaskins/swift,xwu/swift,SwiftAndroid/swift,roambotics/swift,xedin/swift,mightydeveloper/swift,xwu/swift,shahmishal/swift,calebd/swift,harlanhaskins/swift,gottesmm/swift,alblue/swift,huonw/swift,tinysun212/swift-windows,johnno1962d/swift,calebd/swift,kentya6/swift,djwbrown/swift,sschiau/swift,sdulal/swift,milseman/swift,cbrentharris/swift,return/swift,nathawes/swift,huonw/swift,shajrawi/swift,return/swift,xwu/swift,amraboelela/swift,jckarter/swift,kstaring/swift,xwu/swift,mightydeveloper/swift,Ivacker/swift,emilstahl/swift,devincoughlin/swift,kusl/swift,austinzheng/swift,johnno1962d/swift,gribozavr/swift,zisko/swift,uasys/swift,danielmartin/swift,OscarSwanros/swift,shahmishal/swift,shahmishal/swift,milseman/swift,hughbe/swift,kusl/swift,frootloops/swift,emilstahl/swift,cbrentharris/swift,adrfer/swift,adrfer/swift,arvedviehweger/swift,jtbandes/swift,adrfer/swift,gregomni/swift,shajrawi/swift,brentdax/swift,JGiola/swift,russbishop/swift,return/swift,roambotics/swift,deyton/swift,tjw/swift,gregomni/swift,amraboelela/swift,ben-ng/swift,calebd/swift,CodaFi/swift,allevato/swift,sdulal/swift,manavgabhawala/swift,MukeshKumarS/Swift,CodaFi/swift,kentya6/swift,gmilos/swift,russbishop/swift,emilstahl/swift,airspeedswift/swift,IngmarStein/swift,amraboelela/swift,danielmartin/swift,kusl/swift,LeoShimonaka/swift,milseman/swift,gottesmm/swift,ben-ng/swift,hughbe/swift,huonw/swift,natecook1000/swift,calebd/swift,tinysun212/swift-windows,xwu/swift,parkera/swift,austinzheng/swift,lorentey/swift,alblue/swift,austinzheng/swift,sdulal/swift,Jnosh/swift,shajrawi/swift,MukeshKumarS/Swift,bitjammer/swift,danielmartin/swift,zisko/swift,rudkx/swift,jmgc/swift,airspeedswift/swift,danielmartin/swift,codestergit/swift,karwa/swift,gribozavr/swift,benlangmuir/swift,khizkhiz/swift,karwa/swift,milseman/swift,dreamsxin/swift,CodaFi/swift,jtbandes/swift