79197485

Date: 2024-11-17 15:21:41
Score: 0.5
Natty:
Report link

The easiest straightforward way is to use slices.MinFunc as documented here

https://cs.opensource.google/go/go/+/go1.23.3:src/slices/sort.go;l=79

In your case:

firstYoungest := slices.MinFunc(someSlice, func(a, b patient) int {
    return cmp.Compare(a.bodyTemp, b.bodyTemp)
})
Reasons:
  • Whitelisted phrase (-1): In your case
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexander Pakhomov