@@ -112,7 +112,7 @@ follow without them.
112112` ` ` yaml
113113!ys-0
114114name =: 'world'
115- say: - 'Hello, ' + name + '!'
115+ say: + 'Hello, ' + name + '!'
116116` ` `
117117
118118Here we are doing something that you don't see in Clojure.
@@ -121,16 +121,16 @@ We're using `+` to concatenate strings.
121121When YS operators are infix they compile to polymorphic functions that work on
122122types of data other than numbers.
123123
124- But what about the `- ` in front of the string?
124+ But what about the `+ ` in front of the string?
125125
126- Without the `- ` this would be invalid YAML because YAML does not allow text on
126+ Without the `+ ` this would be invalid YAML because YAML does not allow text on
127127the same line after a quoted string.
128128
129- The `- ` causes YAML to see everything after it as the scalar value :
129+ The `+ ` causes YAML to see everything after it as the scalar value :
130130` -'Hello, ' + name + '!'` .
131131This is like an escape character for situations where you want to write an
132132expression but the first character is a syntax character in YAML.
133- The `- ` is removed and the rest of the scalar is compiled as an expression.
133+ The `+ ` is removed and the rest of the scalar is compiled as an expression.
134134
135135
136136# # Basic Function Definition
@@ -243,8 +243,8 @@ Clojure and YS have destructuring assignment support for both sequences
243243and mappings.
244244
245245` ` ` yaml
246- - [a b c] =: foo()
247- - {d :d e :e} =: bar()
246+ + [a b c] =: foo()
247+ + {d :d e :e} =: bar()
248248` ` `
249249
250250This would assign the first three values of the sequence returned by `foo` to
0 commit comments