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
# Test 12: Builtins

print("Test 12: Builtins")
map_result = map([1, 2, 3], fn(x) => x * 2)
print(map_result)
where_result = where([1, 2, 3, 4, 5], fn(x) => x > 3)
print(where_result)
reduce_result = reduce([1, 2, 3, 4], fn(a, b) => a + b, 0)
print(reduce_result)
len_result = len([1, 2, 3])
print(len_result)
type_result = type_of(42)
print(type_result)
print("✓ Builtins work")