Home » Julia

DEPOT_PATH Constant in Julia

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

Julia | DEPOT_PATH Constant

DEPOT_PATH is a constant of Array{String,1} type in Julia programming language, it is used to get the path of a stack of "depot" locations where the package manager and packages are installed/loaded.

Syntax:

    DEPOT_PATH

Example:

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

# Julia example of DEPOT_PATH

x = DEPOT_PATH

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

Output

x: ["/home/runner/.julia", "/usr/local/share/julia", "/usr/share/julia"]
typeof(x): Array{String,1}

Reference: Julia constants



Comments and Discussions!

Load comments ↻





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