Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
user> (defn try-it [ & [x & xs :as all-of-them]]
all-of-them)
#'user/try-it
user> (try-it 1 2 3 4 5)
(1 2 3 4 5)
user> (defn try-it [ & [x & xs :as all-of-them]]
x)
#'user/try-it
user> (try-it 1 2 3 4 5)
1
user> (defn try-it [ & [x & xs :as all-of-them]]
xs)
#'user/try-it
user> (try-it 1 2 3 4 5)
(2 3 4 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.