Init - new array containing all but the last element of the input list
Merge pull request #578 from arcseldon/init

init implementation and tests