Output values

netraken <[email protected]>
Newsgroups gmane.comp.lang.racket.user,gmane.lisp.scheme.plt
Message-ID <[email protected]>
Hi all,

I am an absolute beginner in Racket.
I wrote the following function which deals with Cantor pairing function.

(define (EnumTriplet n)
  (define inter (Enum n))
  (define z (fst inter))
  (define result (Enum (snd inter)))
  (define x (fst result))
  (define y (snd result))
  x
  ;;y
  ;;z
  )

(EnumTriplet 5259 ) should output  5 8 6
How can I modify EnumTriplet so that I got this output ?

Thanks for your help.

Alain

-- 
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.