From 94075ecec503d761ec89f44f476a41f6556a8c0e Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Fri, 4 Dec 2020 20:14:34 +0300 Subject: fix(doc): update docs --- doc/cljlib.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/cljlib.md') diff --git a/doc/cljlib.md b/doc/cljlib.md index a81ebf6..ee686cf 100644 --- a/doc/cljlib.md +++ b/doc/cljlib.md @@ -1130,18 +1130,18 @@ be in the set: ``` fennel >> (ordered-set) -###{} +#{} >> (ordered-set :a :c :b) -###{"a" "c" "b"} +#{"a" "c" "b"} ``` Duplicate items are not added: ``` fennel >> (ordered-set) -###{} +#{} >> (ordered-set :a :c :a :a :a :a :c :b) -###{"a" "c" "b"} +#{"a" "c" "b"} ``` #### Check if set contains desired value: @@ -1165,7 +1165,7 @@ To add element to the set use [`conj`](#conj) or `tset` >> (local oset (ordered-set :a :b :c)) >> (conj oset :d :e) >> oset -###{"a" "b" "c" "d" "e"} +#{"a" "b" "c" "d" "e"} ``` ##### Remove items from the set: @@ -1175,10 +1175,10 @@ To add element to the set use [`disj`](#disj) or `tset` >> (local oset (ordered-set :a :b :c)) >> (disj oset :b) >> oset -###{"a" "c"} +#{"a" "c"} >> (tset oset :a nil) >> oset -###{"c"} +#{"c"} ``` #### Equality semantics @@ -1225,5 +1225,5 @@ Copyright (C) 2020 Andrey Orst License: [MIT](https://gitlab.com/andreyorst/fennel-cljlib/-/raw/master/LICENSE) - -- cgit v1.2.3