Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Removing an element from a list
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Tomasz Zielonka <zielony@c...>
Subject: Re: [Caml-list] Removing an element from a list
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