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 85:82
289
-
posCursor:[85:82] posNoWhite:[85:81] Found expr:[85:70->85:82]
288
+
Complete src/CompletionInferValues.res 90:82
289
+
posCursor:[90:82] posNoWhite:[90:81] Found expr:[90:70->90:82]
290
+
Completable: Cpath Value[someInt]->toS
291
+
[{
292
+
"label": "Belt.Int.toString",
293
+
"kind": 12,
294
+
"tags": [],
295
+
"detail": "int => string",
296
+
"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
+
}]
298
+
299
+
Complete src/CompletionInferValues.res 94:106
300
+
posCursor:[94:106] posNoWhite:[94:105] Found expr:[94:94->94:106]
0 commit comments