Added string.rep() to the string library

This commit is contained in:
2021-02-13 19:07:47 -06:00
parent 1a96e411f2
commit 1fff6c7fe9
2 changed files with 51 additions and 8 deletions

View File

@@ -29,6 +29,7 @@ COSMO_API void cosmoB_loadOSLib(CState *state);
- string.split & <string>:split()
- string.byte & <string>:byte()
- string.char & <string>:char()
- string.rep & <string>:rep()
The base proto object for strings is also set, allowing you to invoke the string.* api through string objects, eg.
`"hello world":split(" ")` is equivalent to `string.split("hello world", " ")`