5
1
Dart is an object oriented programming language borrowing from both Java and Javascript. What general tips do you have for golfing in Dart? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Dart (e.g. "remove comments" is not an answer). Please post one tip per answer.
If a tip is similar to Java/JS, please link to the answer in the original language's thread as well if you can.
Taken mostly from Joey's Tips for Powershell
Is this not just a consequence of first-class functions? (I don't know Dart) – Quelklef – 2018-11-09T12:48:47.353
Looks like it's the case. I didn't know this was more widely spread https://www.dartlang.org/guides/language/language-tour#functions-as-first-class-objects
– Elcan – 2018-11-09T12:51:08.290