Chapter 3. Functions in Julia
Functions form an integral part of any programming language because they increase code modularity, as well as making the code much more readable than unorganized non-function code. Julia is no different, as it also provides functions as part of the built-in library, along with the ability to add in user-defined functions.
This chapter is divided into different sections, with each section talking in detail about itself and providing you with a good stronghold. A list of the things covered in this chapter is provided as follows, which acts as a quick reference for you to go through:
- Creating functions
- Function arguments
- Anonymous functions
- Multiple dispatch
- Recursion
- Built-in functions
After going through this chapter, you will be able to:
- Create and define functions inside Julia REPL as well as independent Julia scripts
- Clearly understand and differentiate between various argument passing methods and their usage
- Create recursive functions, along with having a good understanding...