Returns a true value if index is the last in the list.
bool isLastIndex<V>(Iterable<V> list, int index) { return list.length - 1 == index; }