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 90:82
289
-
posCursor:[90:82] posNoWhite:[90:81] Found expr:[90:70->90:82]
288
+
Complete src/CompletionInferValues.res 91:82
289
+
posCursor:[91:82] posNoWhite:[91:81] Found expr:[91:70->91: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 94:106
300
-
posCursor:[94:106] posNoWhite:[94:105] Found expr:[94:94->94:106]
299
+
Complete src/CompletionInferValues.res 95:109
300
+
posCursor:[95:109] posNoWhite:[95:108] Found expr:[95:97->95: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 98:99
311
-
posCursor:[98:99] posNoWhite:[98:98] Found expr:[98:57->98:99]
312
-
posCursor:[98:99] posNoWhite:[98:98] Found expr:[98:87->98:99]
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]
"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 102:85
323
-
posCursor:[102:85] posNoWhite:[102:84] Found expr:[102:76->102:85]
322
+
Complete src/CompletionInferValues.res 103:88
323
+
posCursor:[103:88] posNoWhite:[103:87] Found expr:[103:79->103: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 109:26
340
-
posCursor:[109:26] posNoWhite:[109:25] Found expr:[109:3->109:37]
posCursor:[109:26] posNoWhite:[109:25] Found expr:[109:24->109:36]
343
-
posCursor:[109:26] posNoWhite:[109:25] Found pattern:[109:25->109:27]
344
-
posCursor:[109:26] posNoWhite:[109:25] Found pattern:[109:25->109:27]
339
+
Complete src/CompletionInferValues.res 107:89
340
+
posCursor:[107:89] posNoWhite:[107:88] Found expr:[107:80->107:89]
341
+
Completable: Cpath Value[str]->slic
342
+
[{
343
+
"label": "Js.String2.sliceToEnd",
344
+
"kind": 12,
345
+
"tags": [],
346
+
"detail": "(t, ~from: int) => t",
347
+
"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"}
348
+
}, {
349
+
"label": "Js.String2.slice",
350
+
"kind": 12,
351
+
"tags": [],
352
+
"detail": "(t, ~from: int, ~to_: int) => t",
353
+
"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
+
}]
355
+
356
+
Complete src/CompletionInferValues.res 115:26
357
+
posCursor:[115:26] posNoWhite:[115:25] Found expr:[115:3->115:37]
0 commit comments