define square (x) {
    echo [* $x $x]
}

define a 2

apply square $a