我可以看到的源代码
let
在里面
kotlin-stdlib-common-1.2.51.jar
路径在哪里
kotlin -> Standard.kt (or file name showing as StandardKt.kotlin_metadata)
. 我也在做同样的命令。
下面是这个的代码
fun
/**
* Calls the specified function [block] with `this` value as its argument and returns its result.
*/
@kotlin.internal.InlineOnly
public inline fun <T, R> T.let(block: (T) -> R): R {
contract {
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
}
return block(this)
}
我使用的版本是
Android Studio 3.1.3
Build #AI-173.4819257, built on June 4, 2018
JRE: 1.8.0_152-release-1024-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6
And kotlin version is Version: 1.2.51-release-Studio3.1-1