Comment puis-je inverser un tableau en Aller?

http://play.golang.org/p/W70J4GU7nA

  s := []int{5, 2, 6, 3, 1, 4}
  sort.Reverse(sort.IntSlice(s))
  fmt.Println(s)
  //5, 2, 6, 3, 1, 4

Il est difficile de comprendre ce que cela signifie en func Inverse(data Interface).

Comment puis-je inverser un tableau? Je n'ai pas besoin de trier.

InformationsquelleAutor | 2013-10-08