Fresh Swift
  • About
  • Tags
Fresh Swift

Swift tip: Building arrays with compactMap

Jesse Squires demonstrates how we can use the Swift compactMap function to build arrays of optional items, while maintaining the intended order of the items.

Posted on August 3, 2018

#compactMap  #filter  #array 
  • ← Previous Post
  • Next Post →

 •  2019  •  Fresh Swift

Hugo v0.20.7 powered  •  Theme by Beautiful Jekyll adapted to Beautiful Hugo