Re: [racket] Indentation in DrRacket

2010-11-13 Thread Robby Findler
Ah. The tab key doesn't work like that. The tab key means "for the current line (or the currently selected region if there is one), adjust the spacing at the beginning of the line so that it is lined up properly for Racket code", roughly speaking. Do you want a literal tab character in your file f

Re: [racket] Indentation in DrRacket

2010-11-13 Thread Harry Spier
I can't find the option in DrRacket to change the indentation size. Also when I use tab key in DrRacket the cursor doesn't move. Harry Spier > Date: Sat, 13 Nov 2010 19:40:58 -0600 > Subject: Re: [racket] Indentation in DrRacket > From: ro...@eecs.northwestern.edu > To: harrysp...@hotmail.co

Re: [racket] Indentation in DrRacket

2010-11-13 Thread Robby Findler
On Sat, Nov 13, 2010 at 7:14 PM, Harry Spier wrote: > Dear list members, > > 1) Is it possible to change the indentation size in DrRacket? No when editing Racket code, no. > 2) Can DrRacket be set up to use the tab key to indent? It does that now, I believe. But maybe I don't understand your qu

[racket] Indentation in DrRacket

2010-11-13 Thread Harry Spier
Dear list members, 1) Is it possible to change the indentation size in DrRacket? 2) Can DrRacket be set up to use the tab key to indent? Thanks, Harry Spier _ For list-related administrative tasks: ht

Re: [racket] One define to rule them all

2010-11-13 Thread Jay McCarthy
If you like this sort of thing, you may also like super values: https://github.com/jeapostrophe/exp/blob/master/values.ss An excerpt: (let-values+ ([(x . xs) (values 10 10.2 10.3)] [(y) 2]) (list x xs y)) => (list 10 (list 10.2 10.3) 2) (let-values+ ([(x [z 3]) 1

Re: [racket] One define to rule them all

2010-11-13 Thread Eli Barzilay
A few seconds ago, Matthias Felleisen wrote: > > On Nov 13, 2010, at 1:23 PM, Eli Barzilay wrote: > > > It does, but not in the above where `values' plays a keyword that > > makes it expand to (define-values (a b) (values 1 2)). > > That's what I said: it's highly non-obvious. Ah -- I really d

Re: [racket] One define to rule them all

2010-11-13 Thread Matthias Felleisen
On Nov 13, 2010, at 1:23 PM, Eli Barzilay wrote: > It does, but not in the above where `values' plays a keyword that > makes it expand to (define-values (a b) (values 1 2)). That's what I said: it's highly non-obvious. _ For list-related adminis

Re: [racket] One define to rule them all

2010-11-13 Thread Eli Barzilay
Two minutes ago, Robby Findler wrote: > On Sat, Nov 13, 2010 at 12:08 PM, Eli Barzilay wrote: > > Three hours ago, Matthias Felleisen wrote: > >> > >> On Nov 12, 2010, at 9:21 PM, Eli Barzilay wrote: > >> > >> > In swindle, all of these do the "obvious" things: > >> > > >> >  (define (values a b)

Re: [racket] One define to rule them all

2010-11-13 Thread Robby Findler
On Sat, Nov 13, 2010 at 12:08 PM, Eli Barzilay wrote: > Three hours ago, Matthias Felleisen wrote: >> >> On Nov 12, 2010, at 9:21 PM, Eli Barzilay wrote: >> >> > In swindle, all of these do the "obvious" things: >> > >> >  (define (values a b) (values 1 2)) >> >> I am sure glad Swindle can define

Re: [racket] One define to rule them all

2010-11-13 Thread Eli Barzilay
Three hours ago, Matthias Felleisen wrote: > > On Nov 12, 2010, at 9:21 PM, Eli Barzilay wrote: > > > In swindle, all of these do the "obvious" things: > > > > (define (values a b) (values 1 2)) > > I am sure glad Swindle can define binary tightly recursive > functions. Does it implement TR p

Re: [racket] Svannah fractals.

2010-11-13 Thread Matthias Felleisen
On second thought I suspect you have that much down and you fail to see how to branch of into the right direction at 1/n of the length and to the left at 1/k for k < n with different angles. On Nov 13, 2010, at 10:09 AM, Matthias Felleisen wrote: > > Here is a hint I posted some N years ago

Re: [racket] One define to rule them all

2010-11-13 Thread Matthias Felleisen
On Nov 12, 2010, at 9:21 PM, Eli Barzilay wrote: > In swindle, all of these do the "obvious" things: > > (define (values a b) (values 1 2)) I am sure glad Swindle can define binary tightly recursive functions. Does it implement TR properly so that this really runs as an infinite loop? _

Re: [racket] Svannah fractals.

2010-11-13 Thread Matthias Felleisen
Here is a hint I posted some N years ago for my freshmen: Recall the hint: "Think of the problem as drawing a straight line, givenits starting point and an angle in, say, radians." Graphically the situationlooks like this:Your given the starting point (x0,y0) the _length_ and the angle _a_ and you 

Re: [racket] use variable(in separated file) mutually ?

2010-11-13 Thread 김태윤
omg thank you so much!! that's just what I want it! 2010/11/13 Thomas Chust > 2010/11/13 김태윤 : > > [...] > > I was told by mailing list that read the racket guide unit section > > but sorry I still don't understand. > > [...] > > Hello, > > you have to use units here because modules do not allow

Re: [racket] use variable(in separated file) mutually ?

2010-11-13 Thread Thomas Chust
2010/11/13 김태윤 : > [...] > I was told by mailing list that read the racket guide unit section > but sorry I still don't understand. > [...] Hello, you have to use units here because modules do not allow mutually recursive dependencies. An example for your situation may look like this: --

Re: [racket] Svannah fractals.

2010-11-13 Thread Ken Hegeland
I suppose I should have clarified that, yes, its from the book, section 27.1.4. --- On Sat, 11/13/10, Noel Welsh wrote: From: Noel Welsh Subject: Re: [racket] Svannah fractals. To: "Ken Hegeland" Cc: us...@lists.racket-lang.org Date: Saturday, November 13, 2010, 7:35 AM I this in reference to