Training Modules 2021
Basics of the Julia language
Basics
Comments do not get evaluated
#=
Comments can also spread over multiple lines
if you enclose them with this syntax
=#
x = 2; # comments can be added at the end of lines
Unicode support
You can enter Unicode characters via tab completion of LaTeX
:
\omega # press TAB
\sum # press TAB
\sqrt # press TAB
\in # press TAB
\:phone: # press TAB
Quotes
Notice the difference between single and double quotes:
typeof("a")
typeof('a')
println("This is a string")
println('Ouch')
Sourcing a file
include()
sources a Julia script:
include("/path/to/file.jl")