Re: [go-nuts] Loops over sorted array, sort.Sort used as value

2016-10-21 Thread Jan Mercl
sort.Sort has no return value so it cannot be used as an expression, which is what the range clause grammar expects. On Fri, Oct 21, 2016, 20:20 Tong Sun wrote: > Hi, > > How to loop over sorted array? > > I got "sort.Sort used as value" error: > https://play.golang.org/p/HP30OyJVrz > > Thanks >

[go-nuts] Loops over sorted array, sort.Sort used as value

2016-10-21 Thread Tong Sun
Hi, How to loop over sorted array? I got "sort.Sort used as value" error: https://play.golang.org/p/HP30OyJVrz Thanks -- 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 em