//ERDDAP/com.cohort.util/ScriptString2/binaryFindLastLE
binaryFindLastLE
[JVM]
open fun binaryFindLastLE(sar: Array<String>, s: String): Int
Find the last element which is <= s in an ascending sorted array.
Return
the index of the last element which is <= s in an ascending sorted array. If s is null or s <the smallest element, this returns -1 (no element is appropriate). If s >the largest element, this returns sar.length-1.
Parameters
JVM
sar | an ascending sorted String[] which may have duplicate values |
s |