Rev 6170 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6170 | bpr | 1 | !if $wims_read_parm!=slib_header |
13588 | bpr | 2 | !goto proc |
6170 | bpr | 3 | !endif |
4 | |||
5 | slib_author=Bernadette, Perrin-Riou |
||
6 | slib_example=[5,4,2] |
||
7 | !exit |
||
8 | |||
9 | :proc |
||
10 | !reset slib_out |
||
11 | !distribute items $wims_read_parm into slib_partition |
||
12 | slib_partition=!declosing $slib_partition |
||
13 | slib_partition=!sort reverse numeric item $slib_partition |
||
14 | slib_cnt=!itemcnt $slib_partition |
||
15 | |||
16 | !for slib_j=1 to $(slib_partition[1]) |
||
13588 | bpr | 17 | !reset slib_t |
6170 | bpr | 18 | !for slib_k=1 to $slib_cnt |
19 | !if $(slib_partition[$slib_k]) >= $slib_j |
||
20 | !increase slib_t |
||
21 | !endif |
||
22 | !next |
||
23 | slib_out=!append item $slib_t to $slib_out |
||
24 | !next |