
上QQ阅读APP看书,第一时间看更新
How to do it...
Let's execute some Swift code that explores the basic types, and then we can walk through it step by step:
- Type the following into a new Playground file:

- Execute the playground to verify that it compiles and runs without any errors. Your playground should look like the following screenshot, with an output for each line in the timeline on the right-hand side and printed values in the console at the bottom:
