Skip to content

Commit 4128229

Browse files
author
Leo Louvar
committed
Update REPL help to reflect current language features
Made-with: Cursor
1 parent 7f467df commit 4128229

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

lib/zixir/repl.ex

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff 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 """

0 commit comments

Comments
 (0)