Check the metadata arglist. For example, (:arglists (meta #'map))
If you want to automate this, you'll need a macro. On Aug 19, 4:24 am, lancecarlson <lancecarl...@gmail.com> wrote: > Is there a way to introspect a function to get its arity? I know some > functions have an arbitrary amount of arguments, but knowing the count > on finite argument lists and whether or not a function accepts an > infinite list would be very useful. Also, hints on what types a > functions arguments accept would be nice to parse through. I don't > need the docs for particular functions, but to be able to use this > information in my code. Ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---