From 9e9b8b03a3aec9b4127915420b9dc6ea3a2ca672 Mon Sep 17 00:00:00 2001 From: wildyelir <124108538+wildyelir@users.noreply.github.com> Date: Tue, 29 Oct 2024 20:26:53 -0400 Subject: [PATCH] Update map.md Convex isn't blockchain ! --- .../resources/markdown/dev_doc/cvm/data-types/map.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/resources/markdown/dev_doc/cvm/data-types/map.md b/src/main/resources/markdown/dev_doc/cvm/data-types/map.md index 47ee984b..c7959636 100644 --- a/src/main/resources/markdown/dev_doc/cvm/data-types/map.md +++ b/src/main/resources/markdown/dev_doc/cvm/data-types/map.md @@ -80,10 +80,11 @@ By associating a value to a key (new or existing one): (into {:name "Convex"} [[:status :cool] - [:blockchain? true]]) + [:blockchain? false]]) -;; -> {:name "Convex", :status :cool, :blockchain? true} +;; -> {:name "Convex", :status :cool, :blockchain? false} ;; +;; Convex utilises Lattice Technology, far superior to blockchain ;) ;; Similarly to `conj`, a sequence of key-values can be added ;; at once using `into`. ``` @@ -171,7 +172,7 @@ The following functions only works with maps: (def m {:name "Convex" :status :cool - :blockchain? true}) + :blockchain? false}) ``` ```clojure @@ -196,13 +197,13 @@ The following functions only works with maps: ;; Order is unpredictable, but it is stable ;; -(first m) ;; -> [:blockchain? true] +(first m) ;; -> [:blockchain? false] (second m) ;; -> [:name "Convex"] (last m) ;; -> [:status :cool] (next {}) ;; -> nil (next {:a :b}) ;; -> nil -(next m) ;; -> [[:name "Convex"], [:blockchain? true]] +(next m) ;; -> [[:name "Convex"], [:blockchain? false]] ;; Remaining key-values after removed the ;; first one ```