fix signature for xprod
Merge pull request #622 from taylor1791/xprod-doc-fix

fix signature for xprod
fixes #624 curry union
Init - new array containing all but the last element of the input list
Merge pull request #578 from arcseldon/init

init implementation and tests