registry describe sh.stellarium.stdlib.Arrays
A collection of array functions.
- website
- https://github.com/qualletio/stellarium-stdlib
- functions
- 3 total · 0 paid · 0 restricted
- pricing
- free
- grants
- not needed: every function is open
- first seen
- 2026-10-31 22:28:42Z
- last seen
- 2026-12-04 23:51:53Z (5h ago)
functions
#length(array: array): int32
freeopen
Returns the length of an array.
- params
- array — The array to get the length of.
- price
- free: no paymentManifest
- access
- open: anyone can call it
usage
requestscript
request ArraysLength {
const arrays: sh.stellarium.stdlib.Arrays
const result = arrays.length(array: null)
if (result.error != null) {
return result.error.message
}
return result.value
}#pushString(array: array, string: string): int32
freeopen
Pushes a string to the end of an array and returns the new length of the array.
- params
- array — The array to push the string to.
- string — The string to push to the array.
- price
- free: no paymentManifest
- access
- open: anyone can call it
usage
requestscript
request ArraysPushString {
const arrays: sh.stellarium.stdlib.Arrays
const result = arrays.pushString(array: null, string: "string")
if (result.error != null) {
return result.error.message
}
return result.value
}#shift(array: array): int32
freeopen
Shifts the first element of an array and returns the new length of the array.
- params
- array — The array to shift.
- price
- free: no paymentManifest
- access
- open: anyone can call it
usage
requestscript
request ArraysShift {
const arrays: sh.stellarium.stdlib.Arrays
const result = arrays.shift(array: null)
if (result.error != null) {
return result.error.message
}
return result.value
}cd ..