Browse Source

Ugly fix is ugly

pull/648/head
Xavier Petit 4 years ago
parent
commit
1daad3d1a4
No known key found for this signature in database
GPG Key ID: CA3F2B17E25ABD26
  1. 5
      go/tests/prog/reverserange_prog/main.go

5
go/tests/prog/reverserange_prog/main.go

@ -3,6 +3,7 @@ package main
import (
"fmt"
"os"
"sort"
"strconv"
"lib"
@ -22,7 +23,9 @@ func main() {
fmt.Println(err)
return
}
for _, i := range lib.IntRange(b, a) {
suite := lib.IntRange(a, b)
sort.Sort(sort.Reverse(sort.IntSlice(suite)))
for _, i := range suite {
fmt.Print(i)
}
fmt.Println()

Loading…
Cancel
Save