Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
elementary stream question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Prashanth Mundkur <mundkur@e...>
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.