https://kotlinlang.org logo
Title
j

Justin Yue

06/08/2021, 2:20 AM
I was told that there was a place where I can see the implementation of functions in Kotlin's standard library. I was wondering if that was a place in the Kotlin docs, or do I somehow inspect the code in IntelliJ to get the implementation?
I typically have success command+ clicking functions to get to implementation details within IntelliJ but I’m not sure what exactly you’re looking for
j

Justin Yue

06/08/2021, 3:44 AM
Hi, these two were exactly what I were looking for. Thank you so much!
d

Dave K

06/08/2021, 3:45 AM
You’re welcome! :)
c

CLOVIS

06/08/2021, 6:55 AM
The shortcut is CTRL B :)
m

Matteo Mirk

06/08/2021, 7:25 AM
the usual shortcut doesn’t work for me… for Java it’s ok but for Kotlin it just provides some reconstructed source from the bytecode, I’m not able to download or attach a sources artifact 😞
v

Vampire

06/08/2021, 7:40 AM
For me it sometimes shows the sources, sometimes the decompiled stubs. I didn't yet investigate what the condition is.
y

y9san9

06/08/2021, 8:15 AM
@Matteo Mirk afaik, when it shows bytecode you can download the sources on this screen
m

Matteo Mirk

06/08/2021, 8:29 AM
tried a hundred times, always failed
😭 1
v

Vampire

06/08/2021, 8:37 AM
afaik, when it shows bytecode you can download the sources on this screen
Of the Kotlin stdlib?
Never seen that, either it worked or it did not work, but never seen a download button for those afair