본문 바로가기
스터디/Dart

[Dart] #2.5 Sets

by SayHiWorld 2024. 1. 10.
var numbers = {1,2,3,4};
//Set <int>

Set <int> numbers = {1, 2, 3, 4};

//values in Set are all Unique. values in List don't have to be Unique.

List <int> numbers2 = [1, 2, 3, 4, 1, 1, 1];

 

'스터디 > Dart' 카테고리의 다른 글

[Dart] #3.1 Named Parameters ({ })  (0) 2024.01.10
[Dart] #3.0 Functions  (0) 2024.01.10
[Dart] #2.4 Maps  (1) 2024.01.10
[Dart] #2.3 Collection For  (0) 2024.01.10
[Dart] #2.2 String interpolation '$'  (1) 2024.01.10