Sorry for not finding a better than this click bait subject. 

In https://github.com/golang/go/issues/62642 this suggestion was made:

slices.SortFunc(times, time.Time.Compare)

It's totally unclear to me how Time.Compare matches the compare func(a,b T) 
int signature? I assume it's something from the golang spec, but which part?

Are there other typical uses of this capability that are common?

Cheers,
Andi

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/efe0eaf6-576b-4cdc-b476-8980eb562f61n%40googlegroups.com.

Reply via email to