On 8/22/2017 1:59 PM, David Storrs wrote:
I've been thinking about various introspection possibilities
:
What about functions? Is there a way to answer the following questions?:
- How many arguments do you require?
- How many values do you return?
- What is your contract?
For functions, you can at least get the number of arguments and returned
values, keywords, etc.
See https://docs.racket-lang.org/reference/procedures.html
Sorry, I don't know about contracts [although I suspect
'prop:checked-procedure'and 'checked-procedure-check-and-extract' might
be the keys].
George
--
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.