본문 바로가기

코린이 탈출기

검색하기
코린이 탈출기
프로필사진 50HEE

  • 분류 전체보기 (115)
    • 코틀린 (3)
    • 안드로이드 (2)
      • 안드로이드 (15)
      • 에러 (3)
      • Compose (0)
    • 책 (6)
      • Do it! 코틀린 프로그래밍 (4)
      • 깡샘의 코틀린 프로그래밍 (2)
    • 인터넷 강의 (75)
      • 클래스101 - 비전공자들을 위한 나만의 안드로이.. (75)
      • 패스트캠퍼스 - The Red : Corouti.. (0)
    • 안드로이드 면접 질문 (9)
      • CS 예상 질문 (3)
      • 안드로이드 예상 질문 (2)
      • Kotlin 예상 질문 (1)
      • 면접 후기 (3)
Guestbook
Recent Posts
Tags
  • !!.
  • """
  • %
  • .to
  • .to타입()
  • /
  • 0dp
  • 4대
  • 4대 컴포넌트
  • >=
  • ?.
  • ?:
  • aab
  • abi
  • acticity
  • Action
  • ActionBar
  • Activity
  • Activity Context
  • Activity 추가
  • Adapter
  • AlertDialog
  • Android
  • ANY
  • API
more
Recent Comments
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록shffled (1)

코린이 탈출기

kotlin - shuffle() vs shuffled()

shuffle()과 shuffled()는 리스트의 값들을 섞고 싶은 경우 사용하는 것입니다. 밑의 사진과 코드는 shuffle()과 shuffled()의 코드입니다. 코드를 보며 설명한 후 사용 예시를 작성하겠습니다. /** * Randomly shuffles elements in this mutable list. */ @kotlin.internal.InlineOnly @SinceKotlin("1.2") public actual inline fun MutableList.shuffle() { java.util.Collections.shuffle(this) } /** * Returns a new list with the elements of this list randomly shuffled. */ @Sinc..

코틀린 2022. 7. 4. 00:57
Prev 1 Next

Blog is powered by AXZ / Designed by Tistory

티스토리툴바