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
posCursor:[48:87] posNoWhite:[48:86] Found expr:[48:36->48:89]
134
+
posCursor:[48:87] posNoWhite:[48:86] Found expr:[48:41->48:87]
135
+
posCursor:[48:87] posNoWhite:[48:86] Found expr:[48:81->48:87]
136
+
Completable: Cpath Value[btn]->t <<jsx>>
137
+
[{
138
+
"label": "Belt.Int.toString",
139
+
"kind": 12,
140
+
"tags": [],
141
+
"detail": "int => string",
142
+
"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"}
143
+
}, {
144
+
"label": "Belt.Int.toFloat",
145
+
"kind": 12,
146
+
"tags": [],
147
+
"detail": "int => float",
148
+
"documentation": {"kind": "markdown", "value": "\n Converts a given `int` to a `float`.\n\n ```res example\n Js.log(Belt.Int.toFloat(1) === 1.0) /* true */\n ```\n"}
149
+
}]
150
+
151
+
Complete src/CompletionInferValues.res 51:108
152
+
posCursor:[51:108] posNoWhite:[51:107] Found expr:[51:12->51:114]
posCursor:[51:108] posNoWhite:[51:107] Found expr:[51:36->51:110]
155
+
posCursor:[51:108] posNoWhite:[51:107] Found expr:[51:41->51:108]
156
+
posCursor:[51:108] posNoWhite:[51:107] Found expr:[51:100->51:108]
157
+
Completable: Cpath Value[btn]->spl <<jsx>>
158
+
[{
159
+
"label": "Js.String2.splitAtMost",
160
+
"kind": 12,
161
+
"tags": [],
162
+
"detail": "(t, t, ~limit: int) => array<t>",
163
+
"documentation": {"kind": "markdown", "value": "\n `splitAtMost delimiter ~limit: n str` splits the given `str` at every occurrence of `delimiter` and returns an array of the first `n` resulting substrings. If `n` is negative or greater than the number of substrings, the array will contain all the substrings.\n\n```\nsplitAtMost \"ant/bee/cat/dog/elk\" \"/\" ~limit: 3 = [|\"ant\"; \"bee\"; \"cat\"|];;\nsplitAtMost \"ant/bee/cat/dog/elk\" \"/\" ~limit: 0 = [| |];;\nsplitAtMost \"ant/bee/cat/dog/elk\" \"/\" ~limit: 9 = [|\"ant\"; \"bee\"; \"cat\"; \"dog\"; \"elk\"|];;\n```\n"}
164
+
}, {
165
+
"label": "Js.String2.splitByRe",
166
+
"kind": 12,
167
+
"tags": [],
168
+
"detail": "(t, Js_re.t) => array<option<t>>",
169
+
"documentation": {"kind": "markdown", "value": "\n`splitByRe(str, regex)` splits the given `str` at every occurrence of `regex`\nand returns an array of the resulting substrings.\n\nSee [`String.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)\non MDN.\n\n```res example\nJs.String2.splitByRe(\"art; bed , cog ;dad\", %re(\"/\\s*[,;]\\s*/\")) == [\n Some(\"art\"),\n Some(\"bed\"),\n Some(\"cog\"),\n Some(\"dad\"),\n ]\n```\n"}
170
+
}, {
171
+
"label": "Js.String2.split",
172
+
"kind": 12,
173
+
"tags": [],
174
+
"detail": "(t, t) => array<t>",
175
+
"documentation": {"kind": "markdown", "value": "\n`split(str, delimiter)` splits the given `str` at every occurrence of\n`delimiter` and returns an array of the resulting substrings.\n\nSee [`String.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)\non MDN.\n\n```res example\nJs.String2.split(\"2018-01-02\", \"-\") == [\"2018\", \"01\", \"02\"]\nJs.String2.split(\"a,b,,c\", \",\") == [\"a\", \"b\", \"\", \"c\"]\nJs.String2.split(\"good::bad as great::awful\", \"::\") == [\"good\", \"bad as great\", \"awful\"]\nJs.String2.split(\"has-no-delimiter\", \";\") == [\"has-no-delimiter\"]\n```\n"}
"documentation": {"kind": "markdown", "value": "\n`splitByReAtMost(str, regex, ~limit:n)` splits the given `str` at every\noccurrence of `regex` and returns an array of the first `n` resulting\nsubstrings. If `n` is negative or greater than the number of substrings, the\narray will contain all the substrings.\n\nSee [`String.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)\non MDN.\n\n```res example\nJs.String2.splitByReAtMost(\"one: two: three: four\", %re(\"/\\s*:\\s*/\"), ~limit=3) == [\n Some(\"one\"),\n Some(\"two\"),\n Some(\"three\"),\n ]\n\nJs.String2.splitByReAtMost(\"one: two: three: four\", %re(\"/\\s*:\\s*/\"), ~limit=0) == []\n\nJs.String2.splitByReAtMost(\"one: two: three: four\", %re(\"/\\s*:\\s*/\"), ~limit=8) == [\n Some(\"one\"),\n Some(\"two\"),\n Some(\"three\"),\n Some(\"four\"),\n ]\n```\n"}
182
+
}]
183
+
184
+
Complete src/CompletionInferValues.res 54:130
185
+
posCursor:[54:130] posNoWhite:[54:129] Found expr:[54:12->54:136]
posCursor:[54:130] posNoWhite:[54:129] Found expr:[54:36->54:132]
188
+
posCursor:[54:130] posNoWhite:[54:129] Found expr:[54:41->54:130]
189
+
posCursor:[54:130] posNoWhite:[54:129] Found expr:[54:123->54:130]
190
+
Completable: Cpath Value[btn]->ma <<jsx>>
191
+
[{
192
+
"label": "Js.Array2.mapi",
193
+
"kind": 12,
194
+
"tags": [],
195
+
"detail": "(t<'a>, ('a, int) => 'b) => t<'b>",
196
+
"documentation": {"kind": "markdown", "value": "\nApplies the function (the second argument) to each item in the array, returning\na new array. The function acceps two arguments: an item from the array and its\nindex number. The result array does not have to have elements of the same type\nas the input array. See\n[`Array.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\non MDN.\n\n```res example\n// multiply each item in array by its position\nlet product = (item, index) => item * index\nJs.Array2.mapi([10, 11, 12], product) == [0, 11, 24]\n```\n"}
197
+
}, {
198
+
"label": "Js.Array2.map",
199
+
"kind": 12,
200
+
"tags": [],
201
+
"detail": "(t<'a>, 'a => 'b) => t<'b>",
202
+
"documentation": {"kind": "markdown", "value": "\nApplies the function (the second argument) to each item in the array, returning\na new array. The result array does not have to have elements of the same type\nas the input array. See\n[`Array.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\non MDN.\n\n```res example\nJs.Array2.map([12, 4, 8], x => x * x) == [144, 16, 64]\nJs.Array2.map([\"animal\", \"vegetable\", \"mineral\"], Js.String.length) == [6, 9, 7]\n```\n"}
0 commit comments