Price list behind API: Difference between revisions

m
→‎{{header|Phix}}: default comment
m (→‎{{header|Phix}}: default comment)
Line 17:
=={{header|Phix}}==
{{trans|Python}}
Note that defaulted arguments of the form mx=get_max_price() are not currently supported, hence a slightly hacky workaround.<br>
If you defined constant mp = get_max_price(), then mx=mp style parameter defaulting would be fine.
<lang Phix>constant price_list_size = 99_000 + rand(2_001) - 1,
price_list = sq_sub(sq_rand(repeat(100_000,price_list_size)),1),
7,794

edits