Skip to content

Commit 6840c82

Browse files
committed
add doc example when pass an array in
1 parent 07d0529 commit 6840c82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Core__Array.resi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,7 @@ external at: (array<'a>, int) => option<'a> = "at"
979979
3->Array.fromSingleton // [3]
980980
undefined->Array.fromSingleton // [undefined]
981981
Some("abc")->Array.fromSingleton // [Some("abc")]
982+
[1,2,3]->Array.fromSingleton // [[1,2,3]]
982983
{"x": 3, "y": 5}->Array.fromSingleton // Some({"x": 3, "y": 5})
983984
```
984985

0 commit comments

Comments
 (0)