What would the correct contract for this function be?

(define/contract (register-functions . func-list)
   (->* () #:rest (listof procedure?) () any)  ;; this is wrong

   (for ((f func-list)) ...do something...))


I've read through the docs below and it doesn't make clear how to do it.

https://docs.racket-lang.org/guide/contracts-general-functions.html
https://docs.racket-lang.org/reference/function-contracts.html

-- 
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