본문 바로가기

Foggy day

검색하기
Foggy day
프로필사진 jinhan38

  • 분류 전체보기 (134)
    • Android (47)
    • Kotlin (26)
    • Flutter (60)
      • Flutter document (2)
      • Flutter widget (27)
      • Flutter 앱 (2)
      • Dart 문법 (14)
      • Flutter 기타 (12)
      • Flutter 강의 (1)
Guestbook
Recent Posts
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Fold (2)

Foggy day

[Dart] 알고 있으면 좋은 문법들

알고 있으면 좋은 문법들에 대해 예제를 추가했습니다. 이중에서 spreadOperator는 특히 많이 사용되고, where도 필요에 따라서 많이 사용할 수도 있습니다. 어떠한 형태로 사용하는지 익혀두면 좋습니다. import 'dart:math'; // The imported package 'collection' isn't a dependency of the importing package. // 나올 경우 yaml -> dependencies -> collection: any 추가 import 'package:collection/collection.dart'; class Advanced { Advanced() { spreadOperator(); functionalProgramming(); whereSy..

Flutter/Dart 문법 2023. 3. 2. 16:40
Kotlin - extension function, fold, reduce

Fold function have initial value. initial is 1 in this example. so, result of calFold is 25. But reduce function don't have initial value. so, result of calRecude is 24, because value of List position zero is 0. class KotlinPlayGroundActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_kotlin_pla..

Kotlin 2021. 3. 17. 00:01
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바