Last active
September 18, 2024 04:59
-
-
Save gyugyu90/6b710fad1b96b414117dc87644302403 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
var brands = ['nike', 'adidas', 'fila']; | |
brands.map((String e) { | |
return e.toUpperCase(); // NIKE, ADIDAS, FILA | |
}).forEach((e) { | |
print(e); | |
}); | |
brands.map((e) => e.toUpperCase()).forEach((e) => print(e)); | |
brands.map((e) => e.toUpperCase()).forEach(print); // tear-off | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment