Skip to content

Instantly share code, notes, and snippets.

@duckinator
Created June 12, 2010 06:22
Show Gist options
  • Save duckinator/435482 to your computer and use it in GitHub Desktop.
Save duckinator/435482 to your computer and use it in GitHub Desktop.
# (foo bar baz) is a list, calling the function FOO with args BAR and BAZ
# [foo bar baz] is a list, treated purely as data
:function1 [str1 str2]
:string (join " " [str1 str2])
(print string)
;
(function1 "foo" "bar")
:function2 [list]
:string (join " " list)
(print string)
;
:a-list ['abc' 'def']
(function2 a-list)
(function2 ['foo' 'bar'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment