English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2002-06-28 (19:53)
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