Skip to content

Commit 2fbad7e

Browse files
committed
Update reference
1 parent 9daeb5a commit 2fbad7e

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

docs/reference.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ has_children: true
88
# Built-in Functions Reference
99
Explore the standard library functions available in GluonScript.
1010

11-
{: .note }
12-
> All functions below are available in the `core` namespace and do not require explicit imports.
11+
## Module: `core`
1312

14-
## String Functions
13+
### `fn append(list: List, element: Any): List`
14+
Returns a new list with the element passed as argument appended to it.
15+
16+
### `fn import(file: String): Record`
17+
Returns a record with all the functions exported by the module defined in file.
1518

1619
### `fn len(list: List): Int`
17-
Returns the length of a List.
20+
Returns the length of a list.
1821

1922
### `fn slice(list List, start: Int, end: Int): List`
20-
Returns a slice of a List, between index start and end.
23+
Returns a new list which is a slice of the list passed as argument, between index start and end.

0 commit comments

Comments
 (0)