func min<T : Comparable>(_: T, _: T, _: T, _: T...)
Returns the least argument passed.
If there are multiple equal least arguments, returns the first one.
Declaration
func
min
<
T
:
Comparable
>
(
x
:
T
,
_
y
:
T
,
_
z
:
T
,
_
rest
:
T
...) -
>
T
Returns the lesser of
x
andy
.If
x == y
, returnsx
.Declaration
func
min
<
T
:
Comparable
>
(
x
:
T
,
_
y
:
T
) -
>
T