Sari la conținutul principal

//ERDDAP/com.cohort.util/ScriptString2/binaryFindFirstGE

binaryFindFirstGE

[JVM]
open fun binaryFindFirstGE(sar: Array<String>, s: String): Int

Find the first element which is >= s in an ascending sorted array.

Return

the index of the first element which is >= s in an ascending sorted array. If s <the smallest element, this returns 0. If s is null or s >the largest element, this returns sar.length (no element is appropriate).

Parameters

JVM

saran ascending sorted String[] which currently may not have duplicate values
s