I am looping through a list to extract data point, but would like to know when I am on the last element (a certain function that is run in the for loop should not be run when its the last element)
for(final eachLine in _blocks){
//
_finalString = _finalString + eachLine + '\n';
}
(I don't want to add \n) for the very last element, so I'd like to know when I'm on the very last element if its possible?