Home » Julia

LOAD_PATH Constant in Julia

Julia | LOAD_PATH Constant: In this tutorial, we are going to learn about the LOAD_PATH constant with examples in Julia programming language.
Submitted by IncludeHelp, on April 02, 2020

Julia | LOAD_PATH Constant

LOAD_PATH is a constant of Array{String,1} type in Julia programming language, it is used to get the list of the characters (array of paths for using and import statements to load the specific package directories).

If JULIA_LOAD_PATH environment variable is not set then it returns the default values ["@", "@v#.#", "@stdlib"].

Syntax:

    LOAD_PATH

Example:

In this example, we are taking a variable x and assigning it with LOAD_PATH. We are printing the value and type of x using using println() function and typeof() function.

# Julia example of LOAD_PATH

x = LOAD_PATH

println("x: ", x)
println("typeof(x): ", typeof(x))

Output

x: ["@", "@v#.#", "@stdlib"]
typeof(x): Array{String,1}

Reference: Julia constants




Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.