Skip to main content

A pure-python non-repeating outside-in spiral iterator-generator for 2D arrays

Project description

Take any two dimensional list like object that supports indexing as input and output a circular clockwise/counter-clockwise shrinking spiral of elements from the input beginning at any of the list’s four corners (ie: input[0][0]) until all the input is exhausted.

This will work on lists of any size in either dimension.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

spirol-1.0.0-py2.py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page