The toolbar in Xcode is one of the most commonly used elements in Xcode. I’m sure as a developer for Apple platforms you know how to use the Toolbar by clicking on the different icons with your mouse. But sometimes, whether you’re sitting on your couch with your Macbook in…

If you’re getting started with Vapor, a common question is, “when do you use map vs flatMap?” In this post, we’ll take a quick look at some examples to help clear it up.

Why map and flatMap?

First of all, why do you need map and flatMap to begin with? Some of Vapor APIs…

Jonathan Wong

Cook, eat, run… San Diego Software Engineer, Pluralsight Author, RW Team Member

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store