j— title: “Import Once in Julia” date: 2021-08-23T16:24:40+02:00 categories:
- technical support tags:
- julia draft: false
Background
I’m reading Think Julia to repick the language again.
- To import a package/module, we
using Foo. - To run a script within the REPL, we
include("foo.jl").
This is useful for user-defined functions, which are usually multi-line.
Problem
How to avoid importing a module/including a file twice?
Solution
Here’s a modified code from the book to give an example.
[Read More]