https://kotlinlang.org logo
Join SlackCommunities
Powered by
# kotlinforbeginners
  • x

    Xitij

    08/24/2020, 7:23 AM
    set the channel description: Dedicated to all the beginners in kotlin or new in kotlin.
  • x

    Xitij

    08/24/2020, 7:26 AM
    set the channel description: Dedicated to all the beginners in kotlin or new in kotlin.Here you can ask and discuss anything related to kotlin programing language.
  • x

    Xitij

    08/24/2020, 7:27 AM
    set the channel topic: Let's Discuss Kotlin
  • x

    Xitij

    10/05/2020, 9:06 AM
    hlo
  • x

    Xitij

    10/05/2020, 9:07 AM
    anyone online ?
  • j

    Jaco

    11/21/2022, 3:52 PM
    We are looking at subList on a collection. The doc talks about structural changes:
    "The returned list is backed by this list, so non-structural changes in the returned list are reflected in this list, and vice-versa.".
    What does a structural change mean? I'm assuming it means adding or removing elements from the list. Is that true?
    k
    • 2
    • 1
  • j

    Jaco

    11/21/2022, 4:04 PM
    On a mutable list a subList returns a MutableList. Can I add (and remove) elements to that? Or does that lead to undefined behaviour?
    k
    • 2
    • 2
  • i

    Ido Flax

    12/15/2022, 5:27 PM
    Not a beginner but i found something maybe strange. The receive parameter T is marked unused here, but it is required
    z
    • 2
    • 1
  • b

    bj0

    09/06/2023, 10:35 PM
    if i define a function on a context receiver:
    context(Interface)
    , should i be able to call that function within a member of a class that implements that interface (
    class A : Interface {...}
    )?
    j
    • 2
    • 2
  • o

    Olivier Patry

    09/19/2023, 10:56 PM
    Is it possible to flag a property of function deprecated for public use while keeping private (or internal) use legit? (say, in few months, I'll replace default public visibility by
    private
    )
    j
    • 2
    • 1