Re: Double Parenthesis

2020-02-09 Thread Freeman Gilmore
gt; Am So., 9. Feb. 2020 um 15:02 Uhr schrieb Freeman Gilmore > >> : > >> > > >> > > >> > > >> > This is taken from the "Scheme Book". > >> > > >> > Question why double parenthesis for let ((rand (random 100)))

Re: Double Parenthesis

2020-02-09 Thread Kieren MacMillan
Hi Freeman, > This is the form i am asking about: > (let > ( > (rand (random 100)) > ) > ( >... > ) > ) In that form, the … is where the procedure(s) for the let function would appear, though I’d probably indent it lik

Re: Double Parenthesis

2020-02-09 Thread Freeman Gilmore
On Sun, Feb 9, 2020 at 12:25 PM Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi Freeman, > > > Ok you are getting closer to what i am asking. > > I’m glad! > > > Rerote(let ((rand (random 100))) ...) .I need to understand it > so that i know which to use and when? > > ((rand

Re: Double Parenthesis

2020-02-09 Thread David Kastrup
Freeman Gilmore writes: > On Sun, Feb 9, 2020 at 9:33 AM Thomas Morley > wrote: > >> Am So., 9. Feb. 2020 um 15:02 Uhr schrieb Freeman Gilmore >> : >> > >> > >> > >> > This is taken from the "Scheme Book". >

Re: Double Parenthesis

2020-02-09 Thread Kieren MacMillan
Hi Freeman, > Ok you are getting closer to what i am asking. I’m glad! > Rerote(let ((rand (random 100))) ...) .I need to understand it so > that i know which to use and when? > ((rand (random 100)) or (rand (random 100) You would never use either, because the parentheses aren’t matc

Re: Double Parenthesis

2020-02-09 Thread Freeman Gilmore
On Sun, Feb 9, 2020 at 11:45 AM Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi Freeman, > > > I understand the above and below but not this let ((rand (random > 100))) > > Put in your form: (let ((rand (random 100))) ...) > > Here are the thoughts of a Scheme newbie — hopefully t

Re: Double Parenthesis

2020-02-09 Thread Kieren MacMillan
Hi Freeman, > I understand the above and below but not this let ((rand (random 100))) > Put in your form: (let ((rand (random 100))) ...) Here are the thoughts of a Scheme newbie — hopefully they are correct! =) Working from the inside out: The first set of parentheses is needed to encap

Re: Double Parenthesis

2020-02-09 Thread Freeman Gilmore
On Sun, Feb 9, 2020 at 9:33 AM Thomas Morley wrote: > Am So., 9. Feb. 2020 um 15:02 Uhr schrieb Freeman Gilmore > : > > > > > > > > This is taken from the "Scheme Book". > > > > Question why double parenthesis for let ((rand (random 100))

Re: Double Parenthesis

2020-02-09 Thread Thomas Morley
Am So., 9. Feb. 2020 um 15:02 Uhr schrieb Freeman Gilmore : > > > > This is taken from the "Scheme Book". > > Question why double parenthesis for let ((rand (random 100))) ? > > Thank you, ƒg Well, every expression needs to be wrapped into parenthesis. One

Re: Double Parenthesis

2020-02-09 Thread Malte Meyn
Am 09.02.20 um 15:02 schrieb Freeman Gilmore: This is taken from the "Scheme Book". Question why double parenthesis for let ((rand (random 100))) ? A let expression can have several definitions, f. e. (let ( (rand (random 100)) (notrand (* 6 7)) ) […] )

Double Parenthesis

2020-02-09 Thread Freeman Gilmore
This is taken from the "Scheme Book". Question why double parenthesis for let ((rand (random 100))) ? Thank you, ƒg