Why to use StringBuffer in Dart instead of Iterable.join?
In Dart, you can concatenate Strings effectively by two ways: you can use
StringBuffer class and then convert it to the String, or you can put all
of your substrings into the List and then call join('') on them.
I do not understand, what are the pluses of the StringBuffer and why
should I use it instead of joining List. Could someone please explain?
No comments:
Post a Comment