From 0c074dcc2a207f9547e2ea56d23b77ee6400435e Mon Sep 17 00:00:00 2001 From: Avelino Date: Thu, 31 May 2018 07:16:08 -0300 Subject: [PATCH] added clojure exampple ref #828 --- website/index/samples/sample.clojure.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 website/index/samples/sample.clojure.txt diff --git a/website/index/samples/sample.clojure.txt b/website/index/samples/sample.clojure.txt new file mode 100644 index 00000000..1dd486d5 --- /dev/null +++ b/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))