From 5b822be9ba9610ac04f746e8c189fff75af51ed9 Mon Sep 17 00:00:00 2001
From: wingbot <109207340+monadabot@users.noreply.github.com>
Date: Tue, 8 Aug 2023 17:52:54 -0400
Subject: [PATCH] feat(docs): update docs (#561)
feat(docs): update docs
Updates the Wing docs. See details in [workflow run].
[Workflow Run]: https://github.com/winglang/docsite/actions/runs/5802268505
------
*Automatically created via the "update-docs" workflow*
---
.../04-standard-library/02-std/api-reference.md | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md b/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md
index d935716ff..068d1bb19 100644
--- a/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md
+++ b/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md
@@ -29,6 +29,7 @@ Immutable Array.
| indexOf
| Returns the index of the first occurrence of searchElement found. |
| join
| Returns a new string containing the concatenated values in this array, separated by commas or a specified separator string. |
| lastIndexOf
| Returns the index of the last occurrence of searchElement found. |
+| tryAt
| Get the value at the given index, returning nil if the index is out of bounds. |
---
@@ -137,6 +138,22 @@ to search for.
---
+##### `tryAt`
+
+```wing
+tryAt(index: num):
+```
+
+Get the value at the given index, returning nil if the index is out of bounds.
+
+###### `index`Required
+
+- *Type:* num
+
+index of the value to get.
+
+---
+
#### Properties