List State Operations

The State provider has list operations for storing state.

Push Elements at the List's Start

Using a list name, you can add an element to a list at the start.

Method Signature

Pushing Elements at the List's Start

Push Elements at the List's End

Using a list name, you can add an element to a list at the end.

Method Signature

Pushing Elements at the List's End

Insert an Element in a Relative Position

You can add an element to a list before or after an existing element. The before boolean is used to decide to place the element before (true) or after (false) the pivot value (the existing element).

Method Signature

Inserting an Element Relatively

Overwrite the Value of an Element at a Specific Index

You can overwrite the value of an element at a specific index. There needs to be a value already at the position specified.

Method Signature

Overwriting the Value of an Element at a Specific Index

Get an Element at a Specific Index

You can get an element at a specific index.

Method Signature

Getting an Element at a Specific Index

Get a List's Length

Using a list name, you can get the length of the list.

Method Signature

Getting a List's Length

Get a List's Elements With a Range

Using a list name and a range, you can get the elements in the specified range.

Method Signature

Getting a List's Elements With a Range

Remove List Elements

You can remove elements from a list by specifying a value. You can optionally provide a count to control how many elements get removed if there are duplicates.

Method Signature

Removing List Elements

Pop Elements at the List's Start

You can pop elements from the start of a list and have them returned to you. You optionally pass a count to pop more than one element at a time.

Method Signature

Popping Elements at the List's Start

Pop Elements at the List's End

You can pop elements from the end of a list and have them returned to you.

Method Signature

Popping Elements at the List's End

Trim a List

You can remove elements from a list by specifying a range. The removed elements will not be returned to you.

Method Signature

Trimming a List