cycle

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cycle

type Cycle struct {
	// contains filtered or unexported fields
}

Cycle is cycle checker.

func New

func New() *Cycle

New is cycle constructor.

func (*Cycle) Append added in v1.0.3

func (c *Cycle) Append(key int) *Cycle

Append creates a new chain and adds the key to it

func (*Cycle) Has added in v1.0.3

func (c *Cycle) Has(key int) bool

Has return true if the key exists

Jump to

Keyboard shortcuts

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