스터디/Dart
[Dart] #2.5 Sets
SayHiWorld
2024. 1. 10. 16:27
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];