define a [cons 1 2]

echo [length $a]