Download lect.notice

Back to the list

Display this manual page in
$$$$ LECT     NOTICE  CHAT      11/09/12    21:17:00     7124           
                                             DATE     11/09/12

    Operateur LECT                           Voir aussi : PROG
    --------------                                        EVOL   
    LENTI1 = LECT 1 2 3 4 5 ;


    Description :
    ____________

    The LECT operator creates a LENTI1 object of LISTENTI type from
 an arbitrary number of ENTIER type objects.

    The PAS subinstruction is used to produce numbers spaced equally
 apart, and the * subinstruction is used to repeat a number.

    Comments :
    _________

    ------------------------
    |  PAS subinstruction  |
    ------------------------

    LENTI1 = LECT 1 PAS 2 5 ; amounts to : LENTI1 = LECT 1 3 5 ;

    PAS must split up the gap.

    Other possibility :

  LENTI1 = LECT 1 PAS 2 NPAS 2 ; amounts to : LENTI1 = LECT 1 3 5 ;

    NPAS must be positive or null.


    -----------------------
    |  Subinstruction  *  |
    -----------------------

    LENTI1 = LECT 4 * 3 ; amounts to : LENTI1 = LECT 3 3 3 3 ;

    Negative steps may be used simultaneously with subinstructions.

    LENTI1 = LECT 1 2  PAS -2 -6 2  3 * 9 PAS 2  3 * 13 ;
or
    LENTI1 = LECT 1 2  PAS -2 NPAS 4  2  3 * 9 PAS 2  3 * 13 ;
amounts to
    LENTI1 = LECT 1 2 0 -2 -4 -6 2  9 9 9  11 13 13 13 ;

 
 

© Cast3M 2003 - All rights reserved.
Disclaimer