From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA27789; Fri, 28 Jun 2002 21:53:12 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA27826 for ; Fri, 28 Jun 2002 21:53:11 +0200 (MET DST) Received: from amber.ccs.neu.edu (amber.ccs.neu.edu [129.10.116.51]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g5SJrA519526 for ; Fri, 28 Jun 2002 21:53:10 +0200 (MET DST) Received: from NORTHEASDX5RFA (pitcairn.ccs.neu.edu [129.10.115.112]) by amber.ccs.neu.edu (Postfix) with ESMTP id 4AB211AA3B; Fri, 28 Jun 2002 15:53:09 -0400 (EDT) Reply-To: From: "Paul Steckler" To: "'Vincent Foley'" , "'OCaml Mailing list'" Subject: RE: [Caml-list] Removing an element from a list Date: Fri, 28 Jun 2002 15:53:09 -0400 Message-ID: <000101c21edd$6d803680$70730a81@NORTHEASDX5RFA> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 In-Reply-To: <20020628193952.GA5829@vincent> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I would like to know how to remove an element from a list. For > example, > I would like to remove 3 in this list: [1; 2; 3; 4; 5]. How would I > do > it? How you'd do it depends *why* you want to remove it. Because it is a 3, or because it's the third element in the list, or some other reason? -- Paul ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners