karelpeeters
09/20/2018, 6:58 PMrepeat
when you actually use the index, it reads wrong to me. So I'd replace that with a for loop instead. I always like the StringBuilder
/ apply
combo, so that's fine IMO.Shawn
09/20/2018, 6:59 PMbuildString(String) { ... }
Hullaballoonatic
09/20/2018, 6:59 PMkarelpeeters
09/20/2018, 7:36 PMbuildString
with exactly this behavior!Hullaballoonatic
09/20/2018, 7:36 PMkarelpeeters
09/20/2018, 7:37 PMShawn
09/20/2018, 7:37 PMkarelpeeters
09/20/2018, 7:37 PMbuildString(String) { ... }
to do?Shawn
09/20/2018, 7:38 PMStringBuilder(String)
takes a string to initialize the builder - buildString
could do the samekarelpeeters
09/20/2018, 7:38 PMHullaballoonatic
09/22/2018, 1:50 AMShawn
09/22/2018, 2:24 AM+
approach are the same - the compiler will transform the latter into the former