elementary stream question

Prashanth Mundkur (mundkur@ece.uci.edu)
Tue, 10 Dec 1996 11:41:21 -0800 (PST)

From: Prashanth Mundkur <mundkur@ece.uci.edu>
Date: Tue, 10 Dec 1996 11:41:21 -0800 (PST)
Message-Id: <199612101941.LAA18986@eagle.ece.uci.edu>
To: caml-list@inria.fr
Subject: elementary stream question

I was just trying out the following piece of code from "Functional Programming
using Caml-light" using Objective Caml 1.02:

# let next = function [< 'x >] -> x;;
Characters 20-22:
Syntax error

So how do I get functions to operate on streams? Is this part of
the Caml syntax different in OCaml? Thanks for any help.

--prashanth