5 .param pmc argv :slurpy
9 if argc < 2 goto bad_args
12 toInteger = get_root_global ['_tcl'], 'toInteger'
16 count = toInteger($P0)
18 if count < 1 goto must_have_count
20 # convert the Array ireturned by foldup into a TclList.
22 retval = new 'TclList'
29 if o_cnt > count goto OUTER_DONE
32 if i_cnt >= argc goto INNER_DONE
45 die 'must have a count of at least 1'
48 die 'wrong # args: should be "lrepeat positiveCount value ?value ...?"'
55 # vim: expandtab shiftwidth=4 ft=pir: