// Example 6: Data Structures
// Demonstrates: Arrays, objects, iteration
// Usage: ruchy examples/cli/06_data_structures.ruchy

// Arrays
let numbers = [1, 2, 3, 4, 5]
println(f"Array: {numbers}")
println(f"First element: {numbers[0]}")
println(f"Length: {numbers.length()}")

// Objects
let person = {
    name: "Alice",
    age: 30,
    city: "NYC"
}
println(f"Person: {person.name}, age {person.age}")

// Array methods
let doubled = numbers.map(|x| x * 2)
println(f"Doubled: {doubled}")
