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
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
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
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
4 matches
Mail list logo