Jul-101 [FREE]

x = 10 # Int64 (default) y = 3.14 # Float64 z = "hello" # String b = true # Bool

| Topic | Syntax | |-------|--------| | | function foo(x) … end or foo(x) = … | | Range | 1:10 (inclusive), 0:0.5:2 | | Array comprehension | [f(i) for i in iterable if condition] | | Multiple return | return a, b → x, y = foo() | | Keyword args | function foo(; a=1, b=2) … end | | Broadcast | sin.(A) applies element‑wise | | String interpolation | "Hello, $name!" | | File I/O | open("data.txt","w") do io; write(io, "text") end | | Parallel map | pmap(foo, collection) | | Macro | @time expr , @assert condition | | Docstring | """Doc …""" function foo(...) … end | | Testing | using Test; @test foo(2) == 4 | jul-101