DataHoarder
4ef60296f1
* Replaced exp/slices and exp/maps with slices/maps implementation * Replaced utils.Min/Max with min/max * Introduced GOEXPERIMENT=loopvar on build steps * Updated tests/docker-compose to go1.21-rc-alpine * Updated nginx to 1.25 * Preallocate mined blocks on Sidechain * Update edwards25519 version
10 lines
106 B
Go
10 lines
106 B
Go
package utils
|
|
|
|
import "slices"
|
|
|
|
func ReverseSlice[S ~[]E, E any](s S) S {
|
|
slices.Reverse(s)
|
|
|
|
return s
|
|
}
|