RosettaCodeData/Task/Variables/E/variables-8.e

9 lines
136 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
def getUniqueId(&counter) {
counter += 1
return counter
}
var idc := 0
getUniqueId(&idc) # returns 1
getUniqueId(&idc) # returns 2