RosettaCodeData/Task/Optional-parameters/Phix/optional-parameters-1.phix

7 lines
138 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
function increment(integer i, integer inc=1)
return i+inc
end function
?increment(5) -- shows 6
?increment(5,2) -- shows 7