Skip to content

gammazero/ring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ring

Fixed-size circular deque

Description

Ring is a fixed-size circular queue, where items can be effiifiently added and removed from either end. The number of items that can be stored in the ring is set at creation, and if the capacity is exceeded the end of the Ring being added to overwrites the other end of the Ring.

Generics

Ring uses generics to create a Ring that contains items of the type specified. To create a Ring that holds a specific type, provide a type argument to New. For example:

    stringRing := ring.New[string](10)

About

Fixed-size circular deque

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages