Documentation ¶
Index ¶
- func Each[Val any](r *ring.Ring[Val], f func(*ring.Ring[Val]))
- func Find[Val comparable](r *ring.Ring[Val], needle Val) *ring.Ring[Val]
- func GetSurroundingValues[Val comparable](r *ring.Ring[Val], me Val, distance int) []Val
- func NewWithValues[Val any](values []Val) *ring.Ring[Val]
- func SomeNext[Val any](r *ring.Ring[Val], f func(Val) bool) *ring.Ring[Val]
- func SomePrev[Val any](r *ring.Ring[Val], f func(Val) bool) *ring.Ring[Val]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶
func Find[Val comparable](r *ring.Ring[Val], needle Val) *ring.Ring[Val]
return nil if needle is not found in ring
func GetSurroundingValues ¶
func GetSurroundingValues[Val comparable](r *ring.Ring[Val], me Val, distance int) []Val
func NewWithValues ¶
Returns a ring that contains references to all the values from the given array. The returned ring is the first in the array
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.