Hi,
Thanks you very much for these very detailed explanations. It helped me
a lot.
Thank you again,
Alain
On 20/01/2019 15:33, Neil Van Dyke wrote:
>
> netraken wrote on 1/20/19 8:31 AM:
>> (define (EnumVarDim n value result)
>> (if ( >= n 2)
>> ( (define pairValue Enum(result))
>
> That
On 20/01/2019 19:50, Jonathan Simpson wrote:
> Are you looking for the values function?
>
> https://docs.racket-lang.org/reference/values.html?q=values#%28def._%28%28quote._~23~25kernel%29._values%29%29
>
> In your example you'd end EnumTriplet with this:
>
> (values x y z)
>
Yes, that's it.
On 1/20/2019 6:34 PM, Brian Adkins wrote:
Thanks.
I do use dynamic-wind in various ways now, but I'm not sure how it
would help me in this particular scenario. My log receiver thread is
simply in a loop sync'ing on the logger, so I can't wait for my
thread. I don't know how to determine when
Thanks.
I do use dynamic-wind in various ways now, but I'm not sure how it would
help me in this particular scenario. My log receiver thread is simply in a
loop sync'ing on the logger, so I can't wait for my thread. I don't know
how to determine when all the log messages have been received. Sl
Are you looking for the values function?
https://docs.racket-lang.org/reference/values.html?q=values#%28def._%28%28quote._~23~25kernel%29._values%29%29
In your example you'd end EnumTriplet with this:
(values x y z)
-- Jonathan
On Friday, January 18, 2019 at 8:49:30 AM UTC-5, Alain Bertrand
netraken wrote on 1/20/19 8:31 AM:
(define (EnumVarDim n value result)
(if ( >= n 2)
( (define pairValue Enum(result))
That first Racket parentheses in `( (define` is not like grouping
parentheses or braces in some other languages. Each Racket parentheses
is significant. When you wa
Hello Neil,
Thanks for your help.
On 20/01/2019 13:54, Neil Van Dyke wrote:
> Hello, Alain. You might wish to write out htdp.org design recipes for
> EnumVarDim and Enum.
Yes it seems that this is an useful reference for learning. Thanks for
pointing it.
I don't know what they're supposed to
Hello, Alain. You might wish to write out htdp.org design recipes for
EnumVarDim and Enum. I don't know what they're supposed to do, but is
the below code closer to what you want?
#lang racket/base
(define (Enum x)
(fprintf (current-error-port) "TODO: implement Enum\n")
x)
(define (Enu
Hello all,
I am a beginner in Racket.
I need to define a variable pairValue as the result of Enum(result)
The following function
;; Fonction inverse en dimension variable
(define (EnumVarDim dim value result)
(if ( >= dim 2)
( (define pairValue Enum(result)))
(result)))
fails with
"defi
9 matches
Mail list logo