Julia Basics
name = "Alice"
nums = [1, 2, 3, 4, 5]
println("Hello, $name!")
function greet(name::String)::String
return "Hello, $name!"
end
Types
struct Point
x::Float64
y::Float64
end
p = Point(3.0, 4.0)
Summary
- Julia is fast like C, easy like Python
- Type annotations use ::
YouTip