You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"documentation": {"kind": "markdown", "value": "\n`slice(str, from:n1, to_:n2)` returns the substring of `str` starting at\ncharacter `n1` up to but not including `n2`.\n- If either `n1` or `n2` is negative, then it is evaluated as `length(str - n1)` or `length(str - n2)`.\n- If `n2` is greater than the length of `str`, then it is treated as `length(str)`.\n- If `n1` is greater than `n2`, slice returns the empty string.\n\nSee [`String.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) on MDN.\n\n```res example\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=5) == \"cde\"\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=9) == \"cdefg\"\nJs.String2.slice(\"abcdefg\", ~from=-4, ~to_=-2) == \"de\"\nJs.String2.slice(\"abcdefg\", ~from=5, ~to_=1) == \"\"\n```\n"}
286
286
}]
287
287
288
-
Complete src/CompletionInferValues.res 91:82
289
-
posCursor:[91:82] posNoWhite:[91:81] Found expr:[91:70->91:82]
288
+
Complete src/CompletionInferValues.res 95:82
289
+
posCursor:[95:82] posNoWhite:[95:81] Found expr:[95:70->95:82]
"documentation": {"kind": "markdown", "value": "\n Converts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n ```res example\n Js.log(Belt.Int.toString(1) === \"1\") /* true */\n ```\n"}
297
297
}]
298
298
299
-
Complete src/CompletionInferValues.res 95:109
300
-
posCursor:[95:109] posNoWhite:[95:108] Found expr:[95:97->95:109]
299
+
Complete src/CompletionInferValues.res 99:109
300
+
posCursor:[99:109] posNoWhite:[99:108] Found expr:[99:97->99:109]
"documentation": {"kind": "markdown", "value": "\n Converts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n ```res example\n Js.log(Belt.Int.toString(1) === \"1\") /* true */\n ```\n"}
308
308
}]
309
309
310
-
Complete src/CompletionInferValues.res 99:102
311
-
posCursor:[99:102] posNoWhite:[99:101] Found expr:[99:57->99:102]
312
-
posCursor:[99:102] posNoWhite:[99:101] Found expr:[99:90->99:102]
310
+
Complete src/CompletionInferValues.res 103:102
311
+
posCursor:[103:102] posNoWhite:[103:101] Found expr:[103:57->103:102]
312
+
posCursor:[103:102] posNoWhite:[103:101] Found expr:[103:90->103:102]
"documentation": {"kind": "markdown", "value": "\n Converts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n ```res example\n Js.log(Belt.Int.toString(1) === \"1\") /* true */\n ```\n"}
320
320
}]
321
321
322
-
Complete src/CompletionInferValues.res 103:88
323
-
posCursor:[103:88] posNoWhite:[103:87] Found expr:[103:79->103:88]
322
+
Complete src/CompletionInferValues.res 107:88
323
+
posCursor:[107:88] posNoWhite:[107:87] Found expr:[107:79->107:88]
"documentation": {"kind": "markdown", "value": "\n`slice(str, from:n1, to_:n2)` returns the substring of `str` starting at\ncharacter `n1` up to but not including `n2`.\n- If either `n1` or `n2` is negative, then it is evaluated as `length(str - n1)` or `length(str - n2)`.\n- If `n2` is greater than the length of `str`, then it is treated as `length(str)`.\n- If `n1` is greater than `n2`, slice returns the empty string.\n\nSee [`String.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) on MDN.\n\n```res example\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=5) == \"cde\"\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=9) == \"cdefg\"\nJs.String2.slice(\"abcdefg\", ~from=-4, ~to_=-2) == \"de\"\nJs.String2.slice(\"abcdefg\", ~from=5, ~to_=1) == \"\"\n```\n"}
337
337
}]
338
338
339
-
Complete src/CompletionInferValues.res 107:89
340
-
posCursor:[107:89] posNoWhite:[107:88] Found expr:[107:80->107:89]
339
+
Complete src/CompletionInferValues.res 111:89
340
+
posCursor:[111:89] posNoWhite:[111:88] Found expr:[111:80->111:89]
"documentation": {"kind": "markdown", "value": "\n`slice(str, from:n1, to_:n2)` returns the substring of `str` starting at\ncharacter `n1` up to but not including `n2`.\n- If either `n1` or `n2` is negative, then it is evaluated as `length(str - n1)` or `length(str - n2)`.\n- If `n2` is greater than the length of `str`, then it is treated as `length(str)`.\n- If `n1` is greater than `n2`, slice returns the empty string.\n\nSee [`String.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) on MDN.\n\n```res example\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=5) == \"cde\"\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=9) == \"cdefg\"\nJs.String2.slice(\"abcdefg\", ~from=-4, ~to_=-2) == \"de\"\nJs.String2.slice(\"abcdefg\", ~from=5, ~to_=1) == \"\"\n```\n"}
354
354
}]
355
355
356
-
Complete src/CompletionInferValues.res 115:26
357
-
posCursor:[115:26] posNoWhite:[115:25] Found expr:[115:3->115:37]
posCursor:[115:26] posNoWhite:[115:25] Found expr:[115:24->115:36]
360
-
posCursor:[115:26] posNoWhite:[115:25] Found pattern:[115:25->115:27]
361
-
posCursor:[115:26] posNoWhite:[115:25] Found pattern:[115:25->115:27]
356
+
Complete src/CompletionInferValues.res 115:80
357
+
posCursor:[115:80] posNoWhite:[115:79] Found expr:[115:70->115:80]
358
+
Completable: Cpath Value[name]->slic
359
+
[{
360
+
"label": "Js.String2.sliceToEnd",
361
+
"kind": 12,
362
+
"tags": [],
363
+
"detail": "(t, ~from: int) => t",
364
+
"documentation": {"kind": "markdown", "value": "\n`sliceToEnd(str, from:n)` returns the substring of `str` starting at character\n`n` to the end of the string.\n- If `n` is negative, then it is evaluated as `length(str - n)`.\n- If `n` is greater than the length of `str`, then sliceToEnd returns the empty string.\n\nSee [`String.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) on MDN.\n\n```res example\nJs.String2.sliceToEnd(\"abcdefg\", ~from=4) == \"efg\"\nJs.String2.sliceToEnd(\"abcdefg\", ~from=-2) == \"fg\"\nJs.String2.sliceToEnd(\"abcdefg\", ~from=7) == \"\"\n```\n"}
365
+
}, {
366
+
"label": "Js.String2.slice",
367
+
"kind": 12,
368
+
"tags": [],
369
+
"detail": "(t, ~from: int, ~to_: int) => t",
370
+
"documentation": {"kind": "markdown", "value": "\n`slice(str, from:n1, to_:n2)` returns the substring of `str` starting at\ncharacter `n1` up to but not including `n2`.\n- If either `n1` or `n2` is negative, then it is evaluated as `length(str - n1)` or `length(str - n2)`.\n- If `n2` is greater than the length of `str`, then it is treated as `length(str)`.\n- If `n1` is greater than `n2`, slice returns the empty string.\n\nSee [`String.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) on MDN.\n\n```res example\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=5) == \"cde\"\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=9) == \"cdefg\"\nJs.String2.slice(\"abcdefg\", ~from=-4, ~to_=-2) == \"de\"\nJs.String2.slice(\"abcdefg\", ~from=5, ~to_=1) == \"\"\n```\n"}
371
+
}]
372
+
373
+
Complete src/CompletionInferValues.res 123:26
374
+
posCursor:[123:26] posNoWhite:[123:25] Found expr:[123:3->123:37]
0 commit comments