gitlab.com/evatix-go/core@v1.3.55/defaultcapacity/PredictiveFiftyPercentIncrement.go (about) 1 package defaultcapacity 2 3 import ( 4 "gitlab.com/evatix-go/core/constants/percentconst" 5 ) 6 7 // PredictiveFiftyPercentIncrement Result must be positive possibleLen * multiplier + additionalCap. 8 // 9 // Less than zero yields additionalCap 10 func PredictiveFiftyPercentIncrement(possibleLen int, additionalCap int) int { 11 return Predictive( 12 possibleLen, 13 percentconst.FiftyPercentIncrement, 14 additionalCap) 15 }