With 2019 coming closer it’s time to review SwiftLee in 2018 and list the top swift development blog posts of this year. The best thing about this all is that I can say that I’ve reached thousands of fellow Swift developers and possibly inspired or taught them with something they didn’t know yet. A weekly …
compactMap
CompactMap vs flatMap: The differences explained
CompactMap and flatMap, what are the differences and when do you use each? Swift 4.1 introduced this new method with the proposal 0187: Introduce Filtermap to gain more clarity in flatMap use cases. When to use compactMap Use this method to receive an array of nonoptional values when your transformation produces an optional value. See …