mirror of
https://github.com/rjNemo/underscore
synced 2026-06-06 02:26:42 +00:00
* change documentation theme and structure * add config files * fix links * add build doc command Co-authored-by: Ruidy <rnemausat@newstore.com>
359 B
359 B
| title | date |
|---|---|
| Min | 2022-03-21T13:33:03-04:00 |
Min returns the minimum value in the slice. This function can currently only compare numbers reliably. This function
uses operator <.
package main
import (
"fmt"
u "github.com/rjNemo/underscore"
)
func main() {
nums := []int{1, 9, 2, 8, 3, 7, 4, 6, 5}
fmt.Println(u.Min(nums)) // 1
}