• poohbar

    poohbar

    1 year ago
    what to use instead of the deprecated
    String.capitalize()
    function?
    poohbar
    j
    +6
    11 replies
    Copy to Clipboard
  • Javier

    Javier

    1 year ago
    Unresolved reference: JvmName
    , is it necessary the reflect library now? It is a KMP project with Kotlin 1.5.0
    Javier
    1 replies
    Copy to Clipboard
  • gsala

    gsala

    1 year ago
    Hey. I'm seeing a strange behavior where even though a
    Result
    is wrapping a failure, the
    isSuccess
    checks return
    true
    . The behavior matches the debugger output there. What could be going on?
    gsala
    wasyl
    4 replies
    Copy to Clipboard
  • mbonnin

    mbonnin

    1 year ago
    It looks like compiling
    apiLevel=1.3
    prevents using
    ExperimentalStdlibApi
    ? Is there a way to still allow that? I'd like to use
    String.capitalize(locale: Locale)
    which is stable in 1.4 while still making sure I don't use anything that's only 1.4
    mbonnin
    Javier
    16 replies
    Copy to Clipboard
  • Brendan Campbell-hartzell

    Brendan Campbell-hartzell

    1 year ago
    This may be getting into the multiple receivers feature, but I'm wondering if there's a way to do this without having to wrap the IComponent in a with() call or something similar.
    Brendan Campbell-hartzell
    r
    3 replies
    Copy to Clipboard
  • t

    thana

    1 year ago
    are there any reasons why the documentation of
    Sequence#take(…)
    does contain code examples only for the
    Iterable#take(…)
    method and even mentions variants of
    take
    that do not even exist on
    Sequence
    ? https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/take.html
    t
    z
    +1
    4 replies
    Copy to Clipboard
  • christophsturm

    christophsturm

    1 year ago
    is there something like `public fun String.substringAfter(delimiter: String, missingDelimiterValue: String = this)`` that instead returns null if the delimeter is not found?
    christophsturm
    s
    +1
    27 replies
    Copy to Clipboard
  • uli

    uli

    1 year ago
    I am missing 
    UByte.toString(radix)
     . Was that forgotten? Or is it missing intentionally? (Kotlin 1.5.10)
    uli
    h
    +1
    12 replies
    Copy to Clipboard
  • m

    mboudraa

    1 year ago
    Hey folks. Just noticed this issue https://youtrack.jetbrains.com/issue/KT-44867 where
    Result.getOrThrow
    throw a ClassCastException even if the result is successful. Is there any workaround while the fix is being released. My app depends on it to work properly
    m
    e
    +2
    8 replies
    Copy to Clipboard
  • Dominaezzz

    Dominaezzz

    1 year ago
    Some sort of no-op comparator would be nice for starting a comparator chain.
    compareBy
    requires to much type info up front, at least the overload that takes a selector.
    Dominaezzz
    ilya.gorbunov
    +1
    9 replies
    Copy to Clipboard