Define function

It split by equal same to define variable case. the left is function header, split by space. first is function is identify, others are argument.

x2 n = * n 2

If you want to use mutable length argument, prefix ~ argument name. The passed mutable length argument will be list.

joinx ~list = join list "x"