File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ for the language's special identifiers.
10
10
*/
11
11
package builtin
12
12
13
+ import "cmp"
14
+
13
15
// bool is the set of boolean values, true and false.
14
16
type bool bool
15
17
@@ -206,6 +208,14 @@ func cap(v Type) int
206
208
// unbuffered.
207
209
func make (t Type , size ... IntegerType ) Type
208
210
211
+ // The max built-in function returns the largest value of a fixed number of
212
+ // arguments of [cmp.Ordered] types. There must be at least one argument.
213
+ func max [T cmp.Ordered ](x T , y ... T ) T
214
+
215
+ // The min built-in function returns the smallest value of a fixed number of
216
+ // arguments of [cmp.Ordered] types. There must be at least one argument.
217
+ func min [T cmp.Ordered ](x T , y ... T ) T
218
+
209
219
// The new built-in function allocates memory. The first argument is a type,
210
220
// not a value, and the value returned is a pointer to a newly
211
221
// allocated zero value of that type.
You can’t perform that action at this time.
0 commit comments