package
Version:
v0.37.0
Opens a new window with list of versions in this module.
Published: Dec 20, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type List[T any] struct {
}
func (l *List[T]) Next() T
Next returns a biased random element
type ListItem[T any] struct {
Item T
Weight float64
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.