Returning an array from a macro

The reason why this works is also that lists are literals when quoted. So:

quote(do: [foo, bar])

is exactly the same as:

[quote(do: foo), quote(do: bar)]
3 Likes