Advanced Syntax
01
Destructuring Assignment
Jackal allows for the extraction of data from arrays into distinct variables using a concise bracket syntax, significantly reducing boilerplate code.
spec_manifest.jk
let [a, b] = [1, 2]
println(a)
println(b)
02
Pipe Operator (Beta)
The pipe operator (|>) facilitates functional data flow by passing the result of an expression as the first argument to the next function. This enhances readability in multi-step transformations.
spec_manifest.jk
"hello world" |> println()
// Example with chaining
"jackal" |> toUpper() |> println()
← Return to Index
Technical Documentation