dart falten

final list = ['a', 'bb', 'ccc'];
// compute the sum of all length
list.fold(0, (total, x) => total + x.length); // result is 6
//        ^
// starting value
just-saved-you-a-stackoverflow-visit