Julia has built-in support for multiple return values. This feature is used often in idiomatic Julia, for example to return both result and error values from a function.
To run the program, save it as multiple_return_values.jl and use the Julia REPL or command line:
Accepting a variable number of arguments is another nice feature of Julia functions; we’ll look at this next.