internal

package
v3.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RotateSlice

func RotateSlice[S ~[]T, T any](s S, n int)

RotateSlice rotates a slice in place by n places to the right. (With negative n, it's to the left.) Example: RotateSlice([D, E, A, B, C], 3) -> [A, B, C, D, E]

This function is here in order to resolve an import cycle that would otherwise exist between iter and slices.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL