Support should be added for LIST commands. Operations should include
Create a new list
This should support making a list out of both literals and variables
Append to a list
Remove an item by index
Remove an item by value
Get the length of a list
Make assertions against the length of a list
This will look like
- var my_list = LIST NEW [1, 2, true, "abc"]
- var removed_value = LIST REMOVE (my_list) 3
- var second_removed_value = LIST REMOVE (my_list) true
- ASSERT LENGTH (my_list) 2
- var some_value = LITERAL 5
- var another_value = LITERAL 10
- var second_list = LIST NEW [1, 2, (some_value), (another_value), "hello world"]
Support should be added for LIST commands. Operations should include
This will look like