feat(mutable): shuffle

This commit is contained in:
Samuel Berthe
2025-01-26 00:02:51 +01:00
parent 64e89e4766
commit 699707a0db
5 changed files with 45 additions and 11 deletions

View File

@@ -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}