Technical requirements
Most of the code in this chapter can be run by accessing V's REPL, as detailed in the Accessing V programming using REPL section of Chapter 2, Installing V Programming. It is recommended that you restart REPL for every section in this chapter as you might encounter the usage of the same variable names.
You will find all of the code snippets for this chapter at https://github.com/PacktPublishing/Getting-Started-with-V-Programming/tree/main/Chapter03.
Additionally, you can save the code snippets to a filename of your choice with the .v
extension and then access the command-line Terminal to run the code, as follows:
v run filename.v