1. Description

This OCaml package provides lazy lists for OCaml. The features are as follows:
  * lazy lists library
  * syntax extension with support for
      - lazy list construction and generation
      - lazy list comprehension
      - parallel lazy list comprehension
      - lazy list pattern matching

Usage examples for original syntax see in examples/,
examples/; for revised syntax - in examples/,

Documentation for lazy list library see in doc/index.html.

2. Installation Instructions

As usual
  sudo make install

For compiling and running tests:
  make tests
  make runtests

3. Usage

Compilation of program that uses lazy lists:
  * Original syntax:
      ocamlc -c -pp "camlp4o pa_llistcomp.cma"
  * Revised syntax:
      ocamlc -c -pp "camlp4r pa_llistcomp.cma"

And linking:
  ocamlc lazy_list.cmo test.cmo -o test

Using in toplevel (original syntax):

  #load "camlp4o.cma" ;;
  #load "pa_llistcomp.cma" ;;
  #load "lazy_list.cmo" ;;

Using in toplevel (revised syntax):

  #load "camlp4r.cma" ;;
  #load "pa_llistcomp.cma" ;
  #load "lazy_list.cmo" ;

Comments are very welcome.

Vadim Shender
vadim at shender dot org