Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.71 KB

README-edit.md

File metadata and controls

52 lines (40 loc) · 1.71 KB

test codecov pypi Python version license: GPL v3

API Downloads

lange

Lazy lists (i.e. Haskell-like ranges) for Python. Latest release | Current code | API documentation

Installation

from package

# Set up a virtualenv. 
python3 -m venv venv
source venv/bin/activate

# Install from PyPI
pip install lange

from source

cd my-project
git clone https://github.com/davips/lange ../lange
pip install -e ../lange

Features

  • Stable floating-point range generation, e.g.: 0.8 - 0.6 == 0.2 up to 28 digits (customizable).
  • Infinite [1 2 ...] or bounded.
  • O(1) access/evaluation lst[3443]

Examples

<>

<>

Other projects

Please access this website for more information.