Gets all but the last element of array.
List initial(List array) { return array.take(array.length - 1).toList(); }