the process to iterate over imageCollection is well documented, but that is not the case for the featureCollection. When trying to apply it, several errors appear. I show here one of them. If anybody has succeeded over this procedure help is appreciated.
var dict1 = ee.Dictionary({'Name': null, 'cultivo': null, 'imageId':null,'sum':null})
var n_list = ee.List(ee.Feature(null,dict1));
print(n_list)
var sum2 = function(feature,list){
var actual = feature.get('sum')
var previous = ee.Feature(ee.List(list).get(-1))
var added = actual.add(previous)
return ee.List(list).add(added)
};
var summarize = ee.FeatureCollection(ee.List(sumChange.iterate(sum2,n_list)));
print('summarise',summarize)
Error
actual.add is not a function