forked from coop-cloud/abra
11 lines
271 B
Go
11 lines
271 B
Go
package internal
|
|
|
|
// ReverseStringList reverses a list of a strings. Roll on Go generics.
|
|
func ReverseStringList(strings []string) []string {
|
|
for i, j := 0, len(strings)-1; i < j; i, j = i+1, j-1 {
|
|
strings[i], strings[j] = strings[j], strings[i]
|
|
}
|
|
|
|
return strings
|
|
}
|