Is there a way for a function to tell how many values it’s caller expects it to 
return?

I’ve tried this and it didn’t work:
#lang racket
(define (show-k-arity)
  (let/ec k
    (error 'print-k-arity "the arity of k is ~v" (procedure-arity k))))
(let-values ([(x y) (show-k-arity)]) (void))


-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to