File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,13 +8,16 @@ has_children: true
88# Built-in Functions Reference
99Explore 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.
You can’t perform that action at this time.
0 commit comments