Re: [go-nuts] Perplexing error

2024-09-09 Thread P Padil
Got it. I missed that the signature of the SortFunc does not include a return value. Thanks! > On Sep 9, 2024, at 12:31 PM, Jan Mercl <0xj...@gmail.com> wrote: > > On Mon, Sep 9, 2024 at 9:24 PM P Padil wrote: > >> Can someone please explain to me why th

[go-nuts] Perplexing error

2024-09-09 Thread P Padil
Can someone please explain to me why the following doesn’t work: slices.SortFunc(ilps, func(u, w *big.Int) int { return u.Cmp(w) }) I get: slices.SortFunc(ilps, (func(u, w *big.Int) int literal)) (no value) used as value Much appreciated! Regards, Pete -- You received this message because yo