# Sets

3개의 포스트
post-thumbnail

Data Types - Dart

Data Types Basic Data Types String bool int double num int, double 의 부모 클래스 List 에디터에서 리스트 마지막에 콤마를 찍으면 자동 포매팅 Collection if String Interpolation $ 뒤 변수 작성 계산시 ${} 로 작성 Collection for[] Maps Sets 중복 X 유일한 값

2023년 3월 30일
·
0개의 댓글
·

Sets

Ch.10 on Mimo - Sets Using Sets A set is a collection of values like lists, but does not allow for any duplicate values. Store in a set to make sure a collection of value can't have any duplicates: output: .add() adds value to a set If a set already contains the value we try to add, nothing happens. (Code runs without an error.) Unlike lists, set elements don't have indices since they are unordered. So, we can only check if a set contains an element with 'in' keyword.

2023년 1월 5일
·
0개의 댓글
·
post-thumbnail

JavaScript - 15

어떤 자료형을 사용할 것인가? JSON web에서 사용가능한 정보들이다. 이러한 정보들은 JSON형태의 자료구조로 오게된다. 객체로 묶여서 각 프로퍼티는 배열로 데이터묶음을 제공하고, 각 데이터들은 객체로서 주어진다. Array, Sets vs Objects or Maps 일반적인 데이터 나열이냐 키, 값의 활용성이 있느냐 에따라 사용할 자료형을 구분지을수 있다. Arrays 일반적인 리스트로서 중복이 허용하는 리스트 Sets 중복을 허용하지 않는 리스트 항목 검색등에 사용되어

2021년 4월 30일
·
0개의 댓글
·