Re: [racket] fuzzy set representation in Racket

2013-08-26 Thread Rian Shams
Thank you, this is amazing! I am a Racketeer for life. On Mon, Aug 26, 2013 at 10:02 PM, Matthias Felleisen wrote: > > Just add fuzzy-set? to the provide specification of fuzzy-set-library. > Also add other functions as needed and provide them. > > > > On Aug 26, 2013, at 9:09 PM, Rian Shams wr

Re: [racket] fuzzy set representation in Racket

2013-08-26 Thread Matthias Felleisen
Just add fuzzy-set? to the provide specification of fuzzy-set-library. Also add other functions as needed and provide them. On Aug 26, 2013, at 9:09 PM, Rian Shams wrote: > Thank you, a fuzzy-set-library is exactly what I am looking for. Initially I > tried to create this library using the

Re: [racket] fuzzy set representation in Racket

2013-08-26 Thread Rian Shams
Thank you, a fuzzy-set-library is exactly what I am looking for. Initially I tried to create this library using the methodology you describe from the chapter on sets in "The Little Schemer," but after discovering structs in Racket I switched over. More recently I have been trying to emulate the set

Re: [racket] fuzzy set representation in Racket

2013-08-23 Thread Matthias Felleisen
Here is one more alternative: #lang racket ;; you can move the body of this module into a '#lang racket' file called fuzzy-set-library.rkt (module fuzzy-set-library racket ;; rename-out is an elegant version of the let()/define-values trick in Realm of Racket (provide (rename-out (fuzz

Re: [racket] fuzzy set representation in Racket

2013-08-23 Thread Neil Van Dyke
Rian Shams wrote at 08/23/2013 03:49 PM: Any guidance on how to create fuzzy-set representation this way or if you can suggest more concise and elegant methods I would be greatly appreciative. The representation you described looked OK to me -- you'd just have to provide operations that enf

Re: [racket] fuzzy set representation in Racket

2013-08-23 Thread Pierpaolo Bernardi
Why don't you simply use a hash-table? (mutable or immutable according to your need). On Fri, Aug 23, 2013 at 9:49 PM, Rian Shams wrote: > Hello All, > > My name is Rian and I am a new Racket user and a novice programmer (Racket > is my first language). First let me say that I am very grateful

[racket] fuzzy set representation in Racket

2013-08-23 Thread Rian Shams
Hello All, My name is Rian and I am a new Racket user and a novice programmer (Racket is my first language). First let me say that I am very grateful for the resources available online and the books, HTDP and Realm of Racket. I find your teaching methods very clear and as a result I am picking up