Example:flatten([1,2,[3,4],5]),b elements display the results.

flatten([1,2,[3,4],5]).result