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: Paul Steckler <steck@c...>
Subject: RE: [Caml-list] Removing an element from a list
> 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