Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: proff@suburbia.net (Julian Assange)
To: Alain Frisch <frisch@clipper.ens.fr>
Cc: Julian Assange <proff@iq.org>, caml-list@inria.fr
Subject: Re: list composition functions
Date: Mon, 16 Oct 2000 23:22:47 +1100 (EST)	[thread overview]
Message-ID: <20001016122247.D008F6C4DF@suburbia.net> (raw)
In-Reply-To: <Pine.GSO.4.04.10010160953380.25478-100000@clipper.ens.fr> "from Alain Frisch at Oct 16, 2000 09:58:00 am"

> On 16 Oct 2000, Julian Assange wrote:
> 
> You could try something like:
> 
> let build_transformer f x =
>     List.concat (List.map f x)
> 
> let (>>) t1 t2 x =
>     t1 (t2 x)

The problem with this is that it builds an intermediary list at each stage,
before handing it to the next. The function that I used does not.

Cheers,
Julian.



      reply	other threads:[~2000-10-16 15:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-15 23:42 Julian Assange
2000-10-16  6:57 ` Jacques Garrigue
2000-10-16  7:58 ` Alain Frisch
2000-10-16 12:22   ` Julian Assange [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20001016122247.D008F6C4DF@suburbia.net \
    --to=proff@suburbia.net \
    --cc=caml-list@inria.fr \
    --cc=frisch@clipper.ens.fr \
    --cc=proff@iq.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox