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 OAA10106; Sat, 13 Jul 2002 14:53:56 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 OAA10097 for ; Sat, 13 Jul 2002 14:53:55 +0200 (MET DST) Received: from mail.cs.net.pl (cyber.cs.net.pl [62.233.142.98]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g6DCrsj13359 for ; Sat, 13 Jul 2002 14:53:54 +0200 (MET DST) Received: by mail.cs.net.pl (Postfix, from userid 510) id EE09C2F5; Sat, 13 Jul 2002 14:53:49 +0200 (CEST) Date: Sat, 13 Jul 2002 14:53:49 +0200 From: Tomasz Zielonka To: YAMAGATA yoriyuki Cc: caml-list@inria.fr Subject: Re: [Caml-list] Removing an element from a list Message-ID: <20020713125349.GA13470@cs.net.pl> References: <20020628193952.GA5829@vincent> <20020629051024V.yoriyuki@mbg.sphere.ne.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020629051024V.yoriyuki@mbg.sphere.ne.jp> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, Jun 29, 2002 at 05:10:24AM +0900, YAMAGATA yoriyuki wrote: > List.filter (fun e -> e <> 3) [1; 2; 3; 4; 5] Or shorter: List.filter ((<>) 3) [1; 2; 3; 4; 5] ------------------- 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