On Feb 15, 2016, at 10:45 AM, Fred Martin <fgmarti...@gmail.com> wrote:
> This may be a silly question. > > Suppose I do something in the REPL that takes a while to compute: > > (define important-object (long-computation)) > > and now I want to write new procedures (or modify existing ones) that will > work with important-object. > > Is there any way to do this? > > If I change code in the definitions window and hit Run, important-object goes > away. > > Thanks :) Say important-object is a list and assume you're in #lang racket as opposed to #lang htdp/bsl. > (define (exploratory-function x) (= (length important-object) x)) > (exploratory-function 0) #f But yes, when you now click RUN, all of this goes away. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.