Technical requirements
Most of the code in this chapter can be run by accessing V's REPL as detailed in Chapter 2, Installing V Programming, under the Accessing V Programming REPL section. Due to the usage of same variable names across the code examples in this chapter, it is recommended to clear variables in REPL using the `reset` command.
You will find all the code snippets for this chapter here: https://github.com/PacktPublishing/Getting-Started-with-V-Programming/tree/main/Chapter04.
You can also 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