Biomodèles/Biomodels
SCILAB 3.0 PAS A PAS
SCILAB 3.0 STEP-TO-STEP

Jacques-Deric Rouault

Laboratoire de Neurobiologie de l'Apprentissage, de la Mémoire et de la Communication. CNRS UMR 8620, Bat. 446, Université Paris-Sud, F91400 Orsay

Orscilab
ORSCILAB

14 LES LISTES TYPEES TLIST
14 THE TYPED LISTS TLIST
14.1 Définition / Definition
Version 2.1.2 du 26 janvier 2005 / Version 2.1.2, January 26th 2005
Biomodèles/Biomodels N°1 pp 0x-0y Décembre 2004 December 2004

Retour à la Table générale / Return to the General table
Index général / General index
Passage à la section suivante 14.2 / Next section 14.2

a
tlist (Type)
b
. (Champ de tlist, Field of tlist)
() (Champ de tlist, Field of tlist)
c
length (tlist)
lstsize (tlist)
size (tlist)

d


La liste tlist est une liste typée : dans la liste correspondante de type list, le premier champ est un ensemble de chaines de caractères et les champs suivants sont les champs de la liste. Les chaines de caractères identifient les noms des différents champs.
The list tlist is a typed list : in the corresponding list of type list, the first field is a set of strings of characters and the following fields are the fields of the list. The strings of character identify the names of the fields.

// PROGRAMME SPAS140101 - tlist
t=tlist(["nom";"ch1";"ch2";"ch3"],1, "abc", 3);
t.ch1,
t.ch2,
t.ch3,


Les 3 champs de la liste typée t sont dénommés par t.ch1, t..ch2 et t.ch3 ou t("ch1"), t("ch2"), et t("ch3")
The 3 fields of the typed list t are named t.ch1, t..ch2 and t.ch3 or  t("ch1"), t("ch2"), and t("ch3").

NB : le premier nom du premier champ n'est pas accessible.

Note;: the first name of the first field is not accessible.

Ch141Sc01-Fig01

Les fonctions lstsize et length retournent le nombre total de champs qui composent la liste. La fonction size n'est pas définie.
The functions lstsize and length return the total number of fields of the list. The function size is not defined.

// PROGRAMME SPAS140102 - tlist size
t=tlist(["nom";"ch1";"ch2";"ch3"],"abc", 3, 158);
s2 = lstsize (t),
s3 = length (t),


Ch14Sc01-Fig02

Les listes tlist sont de type 16 ou 
du premier nom du premier champ. 
tlist
Lists are defined as type 16 or of the first name of the first field..


// PROGRAMME SPAS140103 : tlist  type typeof
t=tlist(["nom";"ch1";"ch2";"ch3"],1, "abc", 3);
t1 = type (t),
t2 = typeof (t),


Ch14Sc01-Fig03

Retour à la Table générale / Return to the General table
Index général / General index
Passage à la section suivante 14.2 / Next section 14.2