Skip to content

Instantly share code, notes, and snippets.

@addywaddy
Last active December 17, 2015 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save addywaddy/b3a19cc7f70fb33201d2 to your computer and use it in GitHub Desktop.
Save addywaddy/b3a19cc7f70fb33201d2 to your computer and use it in GitHub Desktop.
(defn foo [first & rest]
(apply bar first rest)
)
(foo :name [:a :b] [:c :d])
;; How can I ensure that bar is called like this:
;; (bar :name [:a :b] [:c :d])
;;
;; and not like this:
;;
;; (bar :name ([:a :b] [:c :d]))
;; ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment