From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA15862 for caml-redistribution; Fri, 8 Oct 1999 16:14:26 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA12465 for ; Fri, 8 Oct 1999 16:06:43 +0200 (MET DST) Received: from mail.nap.com.ar (mail-in.nap.com.ar [200.49.40.90]) by nez-perce.inria.fr (8.8.7/8.8.7) with SMTP id QAA09548 for ; Fri, 8 Oct 1999 16:06:38 +0200 (MET DST) Received: from [200.41.180.74] (HELO k-bell.com) by mail.nap.com.ar (Stalker SMTP Server 1.8b3) with ESMTP id S.0003743349 for ; Fri, 08 Oct 1999 11:06:32 -0300 Message-ID: <37FDFA4E.456CCA68@k-bell.com> Date: Fri, 08 Oct 1999 11:06:10 -0300 From: =?iso-8859-1?Q?Mat=EDas?= Giovannini Reply-To: matias@k-bell.com Organization: Script S.A. X-Mailer: Mozilla 4.7 (Macintosh; I; PPC) X-Accept-Language: en,es-AR,es MIME-Version: 1.0 To: OCAML Subject: Re: Stdlib regularity References: <199910061518.RAA00904@miss.wu-wien.ac.at> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: weis Markus Mottl wrote: > > > I have used OCaml extensively in the past few years, and I've had > > some misgivings about the CAML standard library argument ordering. It > > is a little bit confusing and not standard. For example: > > Although the standard library is quite ok, there are some (minor) > inconsistencies. What concerns my wishes for it, I'd love to see more > features (= functions or even modules). Yes! Yes! I always begin my Caml code by writing iota, and I wish it were included in the standard library. It's silly simple, and imprescindible. let iota n = let rec aux l n = if n > 0 then aux (n::l) (n-1) else l in aux [] n And then a "functional for" loop looks like List.map (fun i -> ...) (iota n) (Incidentaly, the name "iota" comes from APL, and stands for the "Initial natural Interval".) -- I got your message. I couldn't read it. It was a cryptogram. -- Laurie Anderson