You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: platform declaration clash: The following declarations have the same JVM signature (median([Ljava/lang/Double;)D):[nl] fun Array<Double>.median(): Double defined in kscript.scriplet.Main[nl] fun Array<Double>.median(): Double defined in kscript.scriplet.Main[nl]private fun Array<Double>.median(): Double
Changing the example from val robustMean = listOf(1.3, 42.3, 7.0).median() to val robustMean = arrayOf(1.3, 42.3, 7.0).median() seems to have fixed the issue.
Description of environment
jdk, kotlin and kscript are installed via sdkman on Macbook M1 Pro
Activity