@@ -26,7 +26,7 @@ external log: 'a => unit = "console.log"
26
26
27
27
```rescript
28
28
Console.log2("Hello", "World")
29
- Console.log2([1, 2, 3], [4] )
29
+ Console.log2([1, 2, 3], '4' )
30
30
```
31
31
*/
32
32
@val
@@ -39,7 +39,7 @@ external log2: ('a, 'b) => unit = "console.log"
39
39
40
40
```rescript
41
41
Console.log3("Hello", "World", "ReScript")
42
- Console.log2([1 , 2, 3], [4], [5] )
42
+ Console.log2("One" , 2, #3 )
43
43
```
44
44
*/
45
45
@val
@@ -51,7 +51,7 @@ external log3: ('a, 'b, 'c) => unit = "console.log"
51
51
52
52
```rescript
53
53
Console.log4("Hello", "World", "ReScript", "!!!")
54
- Console.log4([1, 2, 3], [4] , [5] )
54
+ Console.log4([1, 2], (3, 4) , [#5, #6], #"polyvar" )
55
55
```
56
56
*/
57
57
@val
@@ -63,8 +63,8 @@ external log4: ('a, 'b, 'c, 'd) => unit = "console.log"
63
63
## Examples
64
64
65
65
```rescript
66
- Console.log5("Hello", "World", "from ", "JS", "!!!" )
67
- Console.log5(1, 2, 3, 4, 5 )
66
+ Console.log5("Hello", "World", "JS ", '!', '!' )
67
+ Console.log5([ 1, 2], ( 3, 4), [#5, #6], #"polyvar", {"name": "ReScript"} )
68
68
```
69
69
*/
70
70
@val
@@ -77,35 +77,34 @@ on MDN.
77
77
## Examples
78
78
79
79
```rescript
80
- Console.info("Hello")
81
- Console.info([1, 2, 3])
82
- Console.info(("Hello", "ReScript"))
80
+ Console.info("Information")
81
+ Console.info(("Hello", "JS"))
83
82
```
84
83
*/
85
84
@val
86
85
external info : 'a => unit = "console.info"
87
86
88
87
/**
89
- `info2(v1, v2)`. Like `info`, but two arguments.
88
+ `info2(v1, v2)`. Like `info`, but with two arguments.
90
89
91
90
## Examples
92
91
93
92
```rescript
94
- Console.info2("Failed to ", "download")
95
- Console.info2([""] )
93
+ Console.info2("Info ", "failed to download")
94
+ Console.info2(#info, {"name": "ReScript"} )
96
95
```
97
96
*/
98
97
@val
99
98
external info2 : ('a , 'b ) => unit = "console.info"
100
99
101
100
/**
102
- `info3(v1, v2, v3)`. Like `info`, but three arguments.
101
+ `info3(v1, v2, v3)`. Like `info`, but with three arguments.
103
102
104
103
## Examples
105
104
106
105
```rescript
107
106
Console.info3("Hello", "World", "ReScript")
108
- Console.info3([1, 2, 3], [4], [5] )
107
+ Console.info3([1, 2, 3], #4, #5 )
109
108
```
110
109
*/
111
110
@val
@@ -117,8 +116,8 @@ external info3: ('a, 'b, 'c) => unit = "console.info"
117
116
## Examples
118
117
119
118
```rescript
120
- Console.info4("Hello", "World", "ReScript", "!!!" )
121
- Console.info4([1, 2, 3], [4], [5] )
119
+ Console.info4("Hello", "World", "ReScript", '!' )
120
+ Console.info4([1, 2, 3], #4, #5, #lastinfo )
122
121
```
123
122
*/
124
123
@val
@@ -131,7 +130,7 @@ external info4: ('a, 'b, 'c, 'd) => unit = "console.info"
131
130
132
131
```rescript
133
132
Console.info5("Hello", "World", "from", "JS", "!!!")
134
- Console.info5(1, 2, 3, 4, 5 )
133
+ Console.info5([ 1, 2], ( 3, 4), [#5, #6], #"polyvar", {"name": "ReScript"} )
135
134
```
136
135
*/
137
136
@val
@@ -145,9 +144,8 @@ on MDN.
145
144
## Examples
146
145
147
146
```rescript
148
- Console.warn("Hello")
149
- Console.warn([1, 2, 3])
150
- Console.warn(("Hello", "ReScript"))
147
+ Console.warn("Warning")
148
+ Console.warn(("Warning", "invalid number"))
151
149
```
152
150
*/
153
151
@val
@@ -160,7 +158,7 @@ external warn: 'a => unit = "console.warn"
160
158
161
159
```rescript
162
160
Console.warn2("Hello", "World")
163
- Console.warn2([1, 2, 3], [4] )
161
+ Console.warn2([1, 2, 3], 4 )
164
162
```
165
163
*/
166
164
@val
@@ -173,7 +171,7 @@ external warn2: ('a, 'b) => unit = "console.warn"
173
171
174
172
```rescript
175
173
Console.warn3("Hello", "World", "ReScript")
176
- Console.warn3([1, 2, 3], [4], [5] )
174
+ Console.warn3([1, 2, 3], #4, #5 )
177
175
```
178
176
*/
179
177
@val
@@ -186,7 +184,7 @@ external warn3: ('a, 'b, 'c) => unit = "console.warn"
186
184
187
185
```rescript
188
186
Console.warn4("Hello", "World", "ReScript", "!!!")
189
- Console.warn4([1, 2, 3], [4], [5] )
187
+ Console.warn4(#first, #second, #third, ("fourth") )
190
188
```
191
189
*/
192
190
@val
@@ -199,7 +197,7 @@ external warn4: ('a, 'b, 'c, 'd) => unit = "console.warn"
199
197
200
198
```rescript
201
199
Console.warn5("Hello", "World", "from", "JS", "!!!")
202
- Console.warn5(1, 2, 3, 4, 5 )
200
+ Console.warn5([ 1, 2], ( 3, 4), [#5, #6], #"polyvar", {"name": "ReScript"} )
203
201
```
204
202
*/
205
203
@val
@@ -213,9 +211,8 @@ on MDN.
213
211
## Examples
214
212
215
213
```rescript
216
- Console.error("Hello")
217
- Console.error([1, 2, 3])
218
- Console.error(("Hello", "ReScript"))
214
+ Console.error("error message")
215
+ Console.error(("error", "invalid value"))
219
216
```
220
217
*/
221
218
@val
@@ -227,8 +224,8 @@ external error: 'a => unit = "console.error"
227
224
## Examples
228
225
229
226
```rescript
230
- Console.error("Hello ", "World ")
231
- Console.error([1, 2, 3], [4] )
227
+ Console.error2("Error ", "here ")
228
+ Console.error2(("log", "error"), "message" )
232
229
```
233
230
*/
234
231
@val
@@ -240,8 +237,8 @@ external error2: ('a, 'b) => unit = "console.error"
240
237
## Examples
241
238
242
239
```rescript
243
- Console.error3("Hello", "World", "ReScript ")
244
- Console.error3([1, 2, 3], [4], [5] )
240
+ Console.error3("Hello", "World", "!!! ")
241
+ Console.error3(#first, #second, #third )
245
242
```
246
243
*/
247
244
@val
@@ -253,8 +250,8 @@ external error3: ('a, 'b, 'c) => unit = "console.error"
253
250
## Examples
254
251
255
252
```rescript
256
- Console.error ("Hello", "World", "ReScript", "!!!" )
257
- Console.error([1, 2, 3], [4], [5] )
253
+ Console.error4 ("Hello", "World", "ReScript", '!' )
254
+ Console.error4(#first, #second, #third, ("fourth") )
258
255
```
259
256
*/
260
257
@val
@@ -266,8 +263,8 @@ external error4: ('a, 'b, 'c, 'd) => unit = "console.error"
266
263
## Examples
267
264
268
265
```rescript
269
- Console.error5("Hello", "World", "from", "JS", "!!!" )
270
- Console.error5(1, 2, 3, 4, 5 )
266
+ Console.error5('e', 'r, 'r', 'o', 'r' )
267
+ Console.error5(1, #second, #third, ("fourth"), 'c' )
271
268
```
272
269
*/
273
270
@val
0 commit comments