Created
March 25, 2023 17:11
-
-
Save Seelengrab/3056b7bcaae15267ebd34972c17e292f to your computer and use it in GitHub Desktop.
Module structure example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module foobar | |
using ..Utils: utility | |
f(x) = utility*x | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyPackage | |
include("utils.jl") | |
include("foobar.jl") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Utils | |
# utility stuff | |
utility = 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment