Explorar o código

added clojure exampple
ref #828

Avelino %!s(int64=7) %!d(string=hai) anos
pai
achega
0c074dcc2a
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      website/index/samples/sample.clojure.txt

+ 8 - 0
website/index/samples/sample.clojure.txt

@@ -0,0 +1,8 @@
+(def object "call object via def()")
+(defn say-hello
+      "Takes name argument and say hello to the name"
+      [name]
+      (println (str "God said let there be " name)))
+(let [l "light"] (println (str (say-hello l) " " object)))
+(doc say-hello)
+(meta (var say-hello))