articles/dicorebol-fr/until.txt · Dernière modification: 07/05/2005 00:24

EN: rebol.com - rebol.org - rebol.net -
FR: Rebol Documentation Project - forum RebelBB - rebol-france.org - forum codeur -

 

Until - Détail de la fonction

En résumé :

Evalue un bloc jusqu’à ce qu’il retourne TRUE.

Utilisation :

until block

Argument :

block - Le bloc à évaluer. (type: block!)

Description :

Evalue un bloc jusqu’à ce qu’il retourne la valeur TRUE (c’est-à-dire que la dernière expression du bloc est TRUE.)

    str: "string"
    until [
        print str
        tail? str: next str
    ]
    string
    tring
    ring
    ing
    ng
    g

Fonctions en relation :

for - Répète un bloc sur un intervalle de valeurs.

repeat - Evalue un bloc sur une série ou un certain nombre de fois.

while - Tant que le bloc de condition est TRUE, évalue l’autre bloc.

Version anglaise officielle :

 
  articles/dicorebol-fr/until.txt · Dernière modification: 07/05/2005 00:24
 
Fil RSS: Recent changes RSS feed
Valid XHTML 1.0 Valid CSS Powered by PHP Driven by DokuWiki
Hébergement par Spinodo