tspmo Documentation home page
Search...
⌘K
Ask AI
Search...
Navigation
Operators
List Operators
Language
Standard Library
Intro
tspmo Documentation
tspmo Basics
Types
Changelog
Operators
Primary Operators
Arithmetic Operators
List Operators
Additional Operators
Structures
Control Flow
Modules
On this page
ad [a: list] [b: any] -> list
rm [a: list]
pt [a: list] [b: int] [c: any]
gt [a: list] [b: int] -> any
girth [a: list, str] -> int
Operators
List Operators
Copy page
Copy page
ad
[a: list] [b: any] -> list
Adds b to the end of a. Works in-place, also returns for legacy support
**DEPRECATION NOTICE: **The return value will be removed due to redundancy in a future version of the interpreter
rm
[a: list]
Removes the last item of a
pt
[a: list] [b: int] [c: any]
**Primary Operator: **Sets index b of list a to value c. Must be in-place.
gt
[a: list] [b: int] -> any
Returns the item at index b of list a
girth
[a: list, str] -> int
Returns the length of a
Suggest edits
Raise issue
Arithmetic Operators
Additional Operators
Assistant
Responses are generated using AI and may contain mistakes.