5. Examples#

5.1. Case OPERATION = “DEFI”#

To build the list of integers with constant steps:

_images/1000027800001DF9000002E553896CE817064EF5.svg
list = DEFI_LIST_ENTI (DEBUT = 1,

INTERVALLE = (_F (JUSQU_A = 16, PAS = 3),), )

To build the integer list with two different step values:

_images/100002BA00001C6C000002FF3DD7A30568436B4B.svg
list = DEFI_LIST_ENTI (DEBUT = 1,

INTERVALLE = (_F (JUSQU_A = 5, PAS = 1,), _F (JUSQU_A = 15, PAS = 5,),) )

or

list = DEFI_LIST_ENTI (DEBUT = 1,

INTERVALLE = (_F (JUSQU_A = 5, NOMBRE = 4,), _F (JUSQU_A = 15, NOMBRE = 2,),), )

or, from any Python list object:

list = DEFI_LIST_ENTI (VALE = range (10),)

5.2. Case OPERATION = “NUME_ORDRE”#

lnuor = DEFI_LIST_ENTI (OPERATION =” NUME_ORDRE “,

RESULTAT = DEPLTRAN,

PARAMETRE =” INST “,

INTERVALLE =(

_F (VALE =( 1.36, 1.37)),

_F (VALE =( 1.45, 1.46)),

),)

lnuor will contain the list of order numbers whose instant value (parameter INST) is within the given intervals.