aethershell 0.3.1

The world's first multi-agent shell with typed functional pipelines and multi-modal AI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Test 9: Match expressions

print("Test 9: Match Expressions")
result = match 2 {
  1 => "one",
  2 => "two",
  _ => "other"
}
print(result)
guard_result = match 5 {
  x if x < 3 => "small",
  x if x < 7 => "medium",
  _ => "large"
}
print(guard_result)
print("✓ Match expressions work")