🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
14
node_modules/shiki/samples/clojure.sample
generated
vendored
Normal file
14
node_modules/shiki/samples/clojure.sample
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(let [my-vector [1 2 3 4]
|
||||
my-map {:fred "ethel"}
|
||||
my-list (list 4 3 2 1)]
|
||||
(list
|
||||
(conj my-vector 5)
|
||||
(assoc my-map :ricky "lucy")
|
||||
(conj my-list 5)
|
||||
;the originals are intact
|
||||
my-vector
|
||||
my-map
|
||||
my-list))
|
||||
-> ([1 2 3 4 5] {:ricky "lucy", :fred "ethel"} (5 4 3 2 1) [1 2 3 4] {:fred "ethel"} (4 3 2 1))
|
||||
|
||||
;From https://clojure.org/about/functional_programming#_immutable_data_structures
|
||||
Loading…
Add table
Add a link
Reference in a new issue