Re: [racket-users] "Unbound Identifier" (Lists)

2021-02-25 Thread IF Karona
Your solution is so elegant. Thank you! >> PS Do I have the salutation right? Is it 'Hello, IF' or 'Hello, Karona'? << You may call me Karona. Thank you for asking. :) Karona On Wed, Feb 24, 2021 at 11:14 PM David Storrs wrote: > Hi IF, > > I think this is what you

Re: [racket-users] "Unbound Identifier" (Lists)

2021-02-24 Thread IF Karona
response) (loop)) On Wed, Feb 24, 2021 at 3:11 PM George Neuner wrote: > > Hi, > > Presumably you are using 'head' to get the first element of a list. > However, there is no function 'head' for lists. > see: https://docs.racket-lang.org/reference/pairs.html > > Try usin

[racket-users] "Unbound Identifier" (Lists)

2021-02-24 Thread IF Karona
better do this the functional programming way. Karona ;example.rkt #lang racket (require racket/match) (struct message (str sender recipient)) (define (say chat-history m) (cons m chat-history)) (define (log chat-history m) (cons m chat-history)) (let loop () (disp

[racket-users] Questions Regarding My First Program

2021-02-23 Thread IF Karona
programming? 2. I would prefer to not have to use multiple spaces every time I want to indent. Does Dr. Racket have anything comparable to the tab functionality of other programs? Thank you for letting me join your community! Karona ;example.rkt #lang racket (require racket/match) (define (say