From 2323f0960adc93fae3ebb3d76baf92bfd04bdf96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ChangJoo=20Park=28=EB=B0=95=EC=B0=BD=EC=A3=BC=29?= Date: Thu, 15 May 2025 10:21:40 +0900 Subject: [PATCH] feat: update collections --- sidebar.config.mjs | 2 +- src/content/docs/part1/changelog.md | 5 +++-- src/content/docs/part2/collections.md | 11 +++++++++++ src/content/docs/part2/dart-intro.md | 4 ++-- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/sidebar.config.mjs b/sidebar.config.mjs index 3f97f56..965e129 100644 --- a/sidebar.config.mjs +++ b/sidebar.config.mjs @@ -17,8 +17,8 @@ export const sidebars = [ { label: "기본 문법 및 변수", slug: "part2/basic-syntax" }, { label: "타입 시스템 & 제네릭", slug: "part2/type-system" }, { label: "클래스, 생성자, 팩토리", slug: "part2/classes" }, - { label: "비동기 프로그래밍", slug: "part2/async" }, { label: "컬렉션과 반복문", slug: "part2/collections" }, + { label: "비동기 프로그래밍", slug: "part2/async" }, { label: "예외 처리", slug: "part2/exceptions" }, { label: "Extension / Mixin", slug: "part2/extensions" }, { label: "레코드 & 패턴매칭", slug: "part2/records" }, diff --git a/src/content/docs/part1/changelog.md b/src/content/docs/part1/changelog.md index 21c00b2..36c7f38 100644 --- a/src/content/docs/part1/changelog.md +++ b/src/content/docs/part1/changelog.md @@ -5,8 +5,9 @@ title: 변경사항 ### 2025년 05월 15일 -- 1. 시작하기에 **LLM 설정** 추가 -- 1. 시작하기에 **변경사항** 추가 +- 📦 1. 시작하기에 **LLM 설정** 추가 +- 📦 1. 시작하기에 **변경사항** 추가 +- 💡 2. Dart 언어 기초 중 컬렉션과 반복문에 collection 패키지 안내 추가 ### 2025년 05월 14일 diff --git a/src/content/docs/part2/collections.md b/src/content/docs/part2/collections.md index 1d9a445..22bfb9b 100644 --- a/src/content/docs/part2/collections.md +++ b/src/content/docs/part2/collections.md @@ -4,6 +4,17 @@ title: 컬렉션과 반복문 Dart는 데이터를 저장하고 조작하기 위한 다양한 컬렉션 타입과 반복문을 제공합니다. 이 장에서는 Dart의 컬렉션 타입(List, Set, Map)과 이를 처리하기 위한 다양한 반복문 및 반복 연산을 알아보겠습니다. + + + ## 컬렉션 타입 ### 1. List (리스트) diff --git a/src/content/docs/part2/dart-intro.md b/src/content/docs/part2/dart-intro.md index 0a0a03a..385946e 100644 --- a/src/content/docs/part2/dart-intro.md +++ b/src/content/docs/part2/dart-intro.md @@ -57,7 +57,7 @@ final height = 175.5; // double로 추론 ### 3. 비동기 프로그래밍 지원 -Dart는 `Future`, `Stream`, `async`, `await` 등을 통해 비동기 프로그래밍을 자연스럽게 지원합니다. +Dart는 `Future`, `Stream`, `async`, `await` 등을 통해 비동기 프로그래밍을 지원합니다. ```dart Future fetchData() async { @@ -75,7 +75,7 @@ void main() async { ### 4. Null 안전성 -Dart 2.12부터 Null 안전성을 도입하여, 변수가 null이 될 수 있는지 여부를 타입 시스템에서 명시합니다. +Dart 2.12부터 Null 안전성을 도입하여, 변수가 null 가능성을 타입 시스템에서 명시합니다. ```dart // null이 될 수 없는 변수