Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:InsertAt

From Resonite Wiki
InsertAt
*
OnInserted
Element
OnFail
Index
Collection
Collections

The InsertAt node takes in a Collection, an element, and the index or position of the list, then attempts to insert that element value in that list. When inserting, the element effectively pushes or shifts all elements down from the preferred index onward.

Although you can use the index of the last element to add the element at the end of the list, it is recommendded to use the Add node instead, as it does the same thing without the need to keep count for it, as well as not having the worry of being out of bounds when attempting an InsertAt.

Inputs

* (Call)

Calls an impulse to insert an element value within the referenced collection.

Element (Generic)

The element we want to insert within the referenced collection.

Index (Int)

The position in the list where we want to insert the element value to.

Collection (IList)

The collection to insert the new element to.

Outputs

OnInserted (Continuation)

Fires when successfully inserting the element at the preferred index or position.

OnFail (Continuation)

Fires when unable to insert the element in the list or if the index is out of bounds.