Re: [racket-users] Assigning a new value to a global variable in Rachet - how?

2016-09-17 Thread Daniel Prager
The mutator form in Racket is *set! *as in (define (smaller) (set! *big* (- (guess-my-number) 1))) Also you may find it helpful to learn from Realm of Racket rather than Land of Lisp. Dan On Sat, Sep 17, 2016 at 10:22 PM, Angus wrote: > I am reading Chapter 2 C

[racket-users] Assigning a new value to a global variable in Rachet - how?

2016-09-17 Thread Angus
I am reading Chapter 2 Creating your first lisp program in the Land of Lisp book and attempting to use the code in Racket. The syntax is slightly different and the smaller function is defined in Land of Lisp as: (defun smaller () (setf *big* (1- (guess-my-number))) where *big* is a global va