// Benchmark: String operations (measures string performance)
// Tests: String concatenation, conversion, manipulation

fn buildString(n: Int, acc: String): String =
    if n <= 0 then acc
    else buildString(n - 1, acc + toString(n) + " ")

fn countWords(s: String): Int =
    List.length(String.split(s, " "))

// Build a string with 1000 numbers
let longString = buildString(1000, "")

// Count words in the string
let wordCount = countWords(longString)
