Created
June 12, 2010 06:22
-
-
Save duckinator/435482 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (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