Welcome to the CHICKEN Scheme pasting service

mutating parameter var vs global var added by outtabwz on Sat Aug 1 02:14:34 2020

func mutate(x: var int): int =
  x = 42

var x: int = -9
echo "x: ", x
echo "mutate(x): ", mutate(x)
echo "x: ", x

# output:
# x: -9
# mutate(x): 0
# x: 42

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Name of the bot in #chicken:
Visually impaired? Let me spell it for you (wav file) download WAV