ocaml-llists / README

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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.