Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

⭕ Fixed Circular Array Data Structure

License

NotificationsYou must be signed in to change notification settings

TheCocoTeam/CircularArray

 
 

Repository files navigation

Build StatusMinimum PHP VersionReleaseCoverage StatusQuality ScoreSoftware License

Image:Cburnett

FromWikipedia:

Acircular buffer,circular queue, cyclic buffer or ring buffer is a data structure that uses a single,fixed-size buffer as if itwere connected end-to-end.This structure lends itself easily to buffering data streams.

Install

Via Composer

$ composer require php-snippets/circular-array

Usage

You can create an array where an interaction occurs indefinitely:

usePHPSnippets\DataStructures\CircularArray;$circular = Circular::fromArray(array(1,2,3,4));// this foreach never ends, after 4 back to 1.foreach($circularas$value){echo$value;}

Requirements

The following versions of PHP are supported by this version.

  • PHP >= 5.3

Testing

$ vendor/bin/phpunit

Contributing

Please seeCONTRIBUTING andCONDUCT for details.

Credits

License

MIT. Please seeLicense File for more information.

About

⭕ Fixed Circular Array Data Structure

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP100.0%

[8]ページ先頭

©2009-2025 Movatter.jp