cursor

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package cursor aids with iteration of slices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor[V ~[]E, E any] []E

func New

func New[V ~[]E, E any](x V) Cursor[V, E]

func (*Cursor[V, E]) Next

func (s *Cursor[V, E]) Next(n uint) (out V)

Next return an slice of size n and advances the pointer.

Jump to

Keyboard shortcuts

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