PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / trunk
Code Block Pro – Beautiful Syntax Highlighting vtrunk
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / build / shiki / samples / clojure.sample

clojure.sample in Code Block Pro – Beautiful Syntax Highlighting trunk, at build/shiki/samples/clojure.sample

14 lines 417 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (let [my-vector [1 2 3 4]
2 my-map {:fred "ethel"}
3 my-list (list 4 3 2 1)]
4 (list
5 (conj my-vector 5)
6 (assoc my-map :ricky "lucy")
7 (conj my-list 5)
8 ;the originals are intact
9 my-vector
10 my-map
11 my-list))
12 -> ([1 2 3 4 5] {:ricky "lucy", :fred "ethel"} (5 4 3 2 1) [1 2 3 4] {:fred "ethel"} (4 3 2 1))
13
14 ;From https://clojure.org/about/functional_programming#_immutable_data_structures