Fresh Swift
  • About
  • Tags
Fresh Swift

#Patternmatching


Swift Non-Nil Values In An Array Of Optionals

Good tip from Use Your Loaf on how to work with an array of Optional values. Rather than use flatMap to iterate over the non-nil values, we can use pattern matching.

Posted on January 14, 2018

#optional  #patternmatching 

 •  2019  •  Fresh Swift

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