func Min(first Decimal, rest ...Decimal) Decimal {
	varsList := make([]string, 1+len(rest))
	varsList[0] = first.vars
	formulaList := make([]string, 1+len(rest))
	formulaList[0] = first.formula

	newRest := make([]decimal.Decimal, len(rest))
	for i, r := range rest {
		newRest[i] = r.decimal
		varsList[i+1] = r.vars
		formulaList[i+1] = r.formula
	}

	return Decimal{
		decimal: decimal.Min(first.decimal, newRest...),
		vars:    min + leftParen + strings.Join(varsList, comma) + rightParen,
		formula: min + leftParen + strings.Join(formulaList, comma) + rightParen,
	}
}
// Min returns the smallest Decimal that was passed in the arguments.
//
// To call this function with an array, you must do:
//
//     Min(arr[0], arr[1:]...)
//
// This makes it harder to accidentally call Min with 0 arguments.
Min returns the smallest Decimal that was passed in the arguments.

To call this function with an array, you must do.



This makes it harder to accidentally call Min with 0 arguments.
// Min returns the smallest Decimal that was passed in the arguments . // // To call this function with an array you must do : // // Min ( arr [ 0 ] arr [ 1 : ] ... ) // // This makes it harder to accidentally call Min with 0 arguments .
func Min(first Decimal, rest ...Decimal) Decimal {
	varsList := make([]string, 1+len(rest))
	varsList[0] = first.vars
	formulaList := make([]string, 1+len(rest))
	formulaList[0] = first.formula
	newRest := make([]decimal.Decimal, len(rest))
	for i, r := range rest {
		newRest[i] = r.decimal
		varsList[i+1] = r.vars
		formulaList[i+1] = r.formula
	}
	return Decimal{
		decimal: decimal.Min(first.decimal, newRest...),
		vars:    min + leftParen + strings.Join(varsList, comma) + rightParen,
		formula: min + leftParen + strings.Join(formulaList, comma) + rightParen,
	}
}
func Min ( first Decimal , rest ... Decimal ) Decimal { varsList := make ( [ ] string , 1 + len ( rest ) ) varsList [ 0 ] = first . vars formulaList := make ( [ ] string , 1 + len ( rest ) ) formulaList [ 0 ] = first . formula newRest := make ( [ ] decimal . Decimal , len ( rest ) ) for i , r := range rest { newRest [ i ] = r . decimal varsList [ i + 1 ] = r . vars formulaList [ i + 1 ] = r . formula } return Decimal { decimal : decimal . Min ( first . decimal , newRest ... ) , vars : min + leftParen + strings . Join ( varsList , comma ) + rightParen , formula : min + leftParen + strings . Join ( formulaList , comma ) + rightParen , } }
Min returns the smallest Decimal that was passed in the arguments.
Min returns the smallest Decimal that was passed in the arguments .