Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 547 Bytes

argument-requirements-for-a-function.md

File metadata and controls

14 lines (11 loc) · 547 Bytes

Argument Requirements For A Function

When defining a function, you must declare one or more function definitions, each of which will require a different set of arguments. These argument lists are stored as metadata for the function. So, if you are trying to figure out what arity a function is or what variations of arguments it takes, you can check the metadata like so:

> (:arglists (meta #'str))
([] [x] [x & ys])

source