File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,13 +47,16 @@ defmodule Zixir.REPL do
4747 :reset - Clear all variables
4848
4949 Language Features:
50- - let x = 5 - Variable binding
51- - x + 10 - Expression evaluation
52- - engine.list_sum([...]) - Engine operations
53- - python "math" "sqrt" (16.0) - Python calls
54- - if x > 5: 10 else: 20 - Conditionals
55- - [1, 2, 3] - Arrays
56- - fn add(x, y): x + y - Functions (experimental)
50+ - let x = 5 - Variable binding (immutable)
51+ - x + 10 - Expression evaluation
52+ - value |> transform() - Pipe operator
53+ - fn add(x, y): x + y - Functions (recursive, closures)
54+ - if x > 5: 10 else: 20 - Conditionals
55+ - match x { 1 => "one" } - Pattern matching
56+ - [1, 2, 3], {"a": 1} - Arrays and maps
57+ - engine.list_sum([...]) - Engine operations (Zig)
58+ - python "math" "sqrt" (16.0) - Python FFI
59+ - try { expr } catch e => { } - Error handling
5760 """
5861
5962 @ doc """
You can’t perform that action at this time.
0 commit comments