Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for partition (0.07 sec)

  1. android/guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

            }
    
            // Perform a partition with the selected median.
            int low = from + 1, high = to; // Indexes for partitioning.
            double partition = array[from + 1]; // Choose partitioning element.
            while (true) {
              // Skip the elements smaller than the partition.
              do {
                low++;
              } while (array[low] < partition);
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/InetAddressOrder.kt

     */
    internal fun reorderForHappyEyeballs(addresses: List<InetAddress>): List<InetAddress> {
      if (addresses.size < 2) {
        return addresses
      }
    
      val (ipv6, ipv4) = addresses.partition { it is Inet6Address }
    
      return if (ipv6.isEmpty() || ipv4.isEmpty()) {
        addresses
      } else {
        interleave(ipv6, ipv4)
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Apr 24 15:15:15 UTC 2025
    - 1.3K bytes
    - Viewed (0)
Back to top