- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleRing_Prev (0.14 sec)
-
src/container/ring/example_test.go
} // Iterate through the ring and print its contents for j := 0; j < n; j++ { fmt.Println(r.Value) r = r.Next() } // Output: // 0 // 1 // 2 // 3 // 4 } func ExampleRing_Prev() { // Create a new ring of size 5 r := ring.New(5) // Get the length of the ring n := r.Len() // Initialize the ring with some integer values for i := 0; i < n; i++ { r.Value = i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 2.9K bytes - Viewed (0)