Nom
appartient — détermine l'appartenance d'un élément à un
ensemble
Séquence d'appel
b = appartient(e,ens)
Paramètres
- ens
ensemble
- e
chaîne de caractères
- b
%T
(vrai) ou %F
(faux)
Description
La fonction appartient
retourne vrai
(%T
) si l'élément e
appartient à
l'ensemble ens
et faux (%F
)
sinon.
Exemples
ens=ensemble("a","b","c")
appartient("a",ens)
appartient("toto",ens)