[racket] Using new packages, step-by-step

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun Mar 9 22:23:20 EDT 2014

At Wed, 5 Mar 2014 16:31:39 -0800, Joe Gilray wrote:
> I've used dherman's memoize for years.  To use it I added:
> 
> (require (planet dherman/memoize:3:1))
> 
> and changed "define" to "define/memo"
> 
> Now that I installed Racket 6.0, I'd like to use the memoize that is
> referenced at http://pkgs.racket-lang.org/.
> 
> Can someone give me a step-by-step guide on how to do this?

As explained in

 http://docs.racket-lang.org/pkg/getting-started.html

you can install a package with either DrRacket or with `raco pkg` at
the command line.


In DrRacket:

 * Select "Package Manager" from the "File" menu

 * Type "memoize" in the text field

 * Click "Install"

Or at the command line:

 raco pkg install memoize


After either of those, searching documentation "memoize" should work,
and the docs say to use

 (require memoize)

and then `define/memo`.


> Also, how do I then delete the old "planet" - based memoize?

At the command line:

 raco planet remove dherman memoize.plt 3 1

See also


Posted on the users mailing list.