mirror of
https://github.com/samber/lo.git
synced 2025-10-05 07:56:51 +08:00
feat(mutable): shuffle
This commit is contained in:
@@ -2,6 +2,14 @@ package mutable
|
||||
|
||||
import "fmt"
|
||||
|
||||
func ExampleShuffle() {
|
||||
list := []int{0, 1, 2, 3, 4, 5}
|
||||
|
||||
Shuffle(list)
|
||||
|
||||
fmt.Printf("%v", list)
|
||||
}
|
||||
|
||||
func ExampleReverse() {
|
||||
list := []int{0, 1, 2, 3, 4, 5}
|
||||
|
||||
|
Reference in New Issue
Block a user