In this tutorial you will learn about the Swift REPL and its application with practical example.
Swift REPL is a interactive read-eval-print-loop terminal, it provides you a way to interactively explore, running and debug swift code. XCode Playground is more like Swift REPL, If you’ve latest version of Xcode installed on your system then you are able to launch Swift REPL by typing in swift command on terminal as following –
Welcome to Swift! Type :help for assistance.
1> println("Hello world!")