branch: externals/tomelr
commit 0ba5f2ff69b1c6a3f4fcfe89e6b54bca11b4d1d2
Author: Kaushal Modi <[email protected]>
Commit: Kaushal Modi <[email protected]>
chore(readme): Move mixed type array example to the 'medley' example
---
README.org | 36 +++++++++++++++++-------------------
1 file changed, 17 insertions(+), 19 deletions(-)
diff --git a/README.org b/README.org
index 948d37fdaa..937d0c9462 100644
--- a/README.org
+++ b/README.org
@@ -341,22 +341,12 @@ numbers = [ 0.1, 0.2, 0.5, 1, 2, 5 ]
**** S-expression
#+begin_src emacs-lisp :eval no :noweb-ref array-of-arrays
'((nested_arrays_of_ints . [(1 2) (3 4 5)])
- (nested_mixed_array . [(1 2) ("a" "b" "c")])
- (contributors . ("Foo Bar <[email protected]>"
- ((name . "Baz Qux")
- (email . "[email protected]")
- (url . "https://example.com/bazqux")))))
+ (nested_mixed_array . [(1 2) ("a" "b" "c")]))
#+end_src
**** TOML
#+begin_src toml
nested_arrays_of_ints = [ [ 1, 2 ], [3, 4, 5] ]
nested_mixed_array = [ [ 1, 2 ], ["a", "b", "c"] ]
-
-# Mixed-type arrays are allowed
-contributors = [
- "Foo Bar <[email protected]>",
- { name = "Baz Qux", email = "[email protected]", url =
"https://example.com/bazqux" }
-]
#+end_src
**** JSON Reference
#+begin_src emacs-lisp :noweb yes :exports results
@@ -388,14 +378,6 @@ contributors = [
"b",
"c"
]
- ],
- "contributors": [
- "Foo Bar <[email protected]>",
- {
- "name": "Baz Qux",
- "email": "[email protected]",
- "url": "https://example.com/bazqux"
- }
]
}
#+end_example
@@ -589,6 +571,10 @@ See
[org#Drawers](https://www.gnu.org/software/emacs/manual/html_mono/org.html#D
(integers . (123 -5 17 1234))
(floats . (12.3 -5.0 -1.7e-05))
(booleans . (t :false))
+ (contributors . ("Foo Bar <[email protected]>"
+ ((name . "Baz Qux")
+ (email . "[email protected]")
+ (url . "https://example.com/bazqux"))))
(dog . ((legs . 4)
(eyes . 2)
(friends . ("poo" "boo"))))
@@ -644,6 +630,10 @@ strings-symbols = ["abc", "def", "two words"]
integers = [123, -5, 17, 1_234]
floats = [12.3, -5.0, -1.7e-05]
booleans = [true, false]
+contributors = [
+ "Foo Bar <[email protected]>",
+ { name = "Baz Qux", email = "[email protected]", url =
"https://example.com/bazqux" }
+]
[dog]
legs = 4
eyes = 2
@@ -767,6 +757,14 @@ booleans = [true, false]
true,
false
],
+ "contributors": [
+ "Foo Bar <[email protected]>",
+ {
+ "name": "Baz Qux",
+ "email": "[email protected]",
+ "url": "https://example.com/bazqux"
+ }
+ ],
"dog": {
"legs": 4,
"eyes": 2,