Set!


Purpose

"Set!" is used to change the value of an already existing variable.

Usage

"Set!" takes two arguments: the variable and a new value.

Examples

Simple example:
  ox --> (define i 1)
  i
  ox --> i
  1
  ox --> (set! i 1000)
  i
  ox --> i
  1000

Return to Scheme Introduction


mrl