Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for findLast (0.04 sec)

  1. .teamcity/src/main/kotlin/model/BucketExtensions.kt

            var restCapacity = roughSizeOfEachBucket - toIntFunction(largestElement)
            while (restCapacity > 0 && list.isNotEmpty() && buckets.size < maxNumberInBucket) {
                val smallestElement = list.findLast { searched -> buckets.all { canRunTogether(it, searched) } } ?: break
                list.remove(smallestElement)
                buckets.add(smallestElement)
                restCapacity -= toIntFunction(smallestElement)
            }
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Wed Feb 12 09:12:03 UTC 2025
    - 5.7K bytes
    - Viewed (0)
Back to top