Hi Jay,

Could you write a template for me for the below function?
(define-struct stru (v1 v2))

(define (my-fun s)
  (cond [(> (stru-v1 s) (stru-v2 s)) (stru-v1 s)]
   [else (stru-v2 s)]
  )
)

(my-fun (make-stru 1 2))
(my-fun (make-stru 2 1))

thanks
David

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to