Discover Packages
github.com/victorguarana/vehicle-routing
internal
slc
package
Version:
v0.0.0-...-40a4415
Opens a new window with list of versions in this module.
Published: Jul 11, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
This package contains functions to manipulate slices.
func CircularSelection[T any ](list []T, index int ) T
func CircularSelectionWithIndex[T any ](list []T, index int ) (T, int )
func Copy[T any ](slice []T) []T
func InsertAt[T any ](slice []T, element T, index int ) []T
func RemoveElement[T comparable ](slice []T, element T) []T
type Iterator[T any ] interface {
Actual() T
ForEach(f func())
GoToNext()
GoToPrevious()
HasNext() bool
HasPrevious() bool
Index() int
Next() T
Previous() T
RemoveActualIndex()
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.