Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interface ¶
type Interface interface { // Len is the number of elements in the collection. Len() int // Swap swaps the elements with indexes i and j. Swap(i, j int) }
Interface for shuffle. When it is satisfied, a collection can be shuffled by the routines in this package. The methods require that the elements of the collection be enumerable by an integer index. This interface is similar to sort.Interface.
Click to show internal directories.
Click to hide internal directories.