Dev study and notes

[dart] #11 #2.3 Collection For (02:27) 본문

studyLog

[dart] #11 #2.3 Collection For (02:27)

devlunch4 2023. 4. 29. 00:01
반응형
void main() {
    var oldFriends = ['lunch', 'lynn'];
    var newFriends = [
    'andrew',
    'john',
    for (var friend in oldFriends) ";D $friend",
    ];
    print(newFriends);
}
// PRINT
// >>> [andrew, john, ;D lunch, ;D lynn]
반응형

'studyLog' 카테고리의 다른 글

[dart] #13 #2.5 Sets (02:16)  (0) 2023.05.02
[dart] #12 #2.4 Maps (05:38)  (0) 2023.05.02
[dart] #10 #2.2 String Interpolation (04:30)  (0) 2023.04.29
[dart] #9 #2.1 Lists (04:06)  (0) 2023.04.28
[dart] #8 #2.0 Basic Data Types (02:12)  (0) 2023.04.28
Comments