Skip to content
SoulFire LogoSoulFire

List

Inputs, outputs, and defaults of the 7 built-in nodes in the List category.

Generated from the pinned SoulFire source. Regenerate these pages with bun run generate-node-reference.

First

list.first

Gets the first item in a list

Also called: list, head, front, start.

Inputs

PortTypeRequired / defaultDescription
list (List)list<T>RequiredThe input list

Outputs

PortTypeDescription
item (Item)TThe first item in the list
found (Found)booleanWhether the list was non-empty

Implementation

Get At Index

list.get_at

Gets an item at a specific index in a list

Also called: list, get, index, at, element, access.

Inputs

PortTypeRequired / defaultDescription
list (List)list<T>RequiredThe input list
index (Index)number0The index to retrieve (0-based)

Outputs

PortTypeDescription
item (Item)TThe item at the specified index
found (Found)booleanWhether the index was valid

Implementation

Join to String

list.join

Joins list items into a string with a separator

Also called: list, join, string, concat, combine, separator.

Inputs

PortTypeRequired / defaultDescription
list (List)list<T>RequiredThe list to join
separator (Separator)string", "The separator between items

Outputs

PortTypeDescription
result (Result)stringThe joined string

Implementation

Last

list.last

Gets the last item in a list

Also called: list, tail, back, end.

Inputs

PortTypeRequired / defaultDescription
list (List)list<T>RequiredThe input list

Outputs

PortTypeDescription
item (Item)TThe last item in the list
found (Found)booleanWhether the list was non-empty

Implementation

List Contains

list.contains

Checks if a list contains a specific item

Also called: list, contains, includes, has, find, search.

Inputs

PortTypeRequired / defaultDescription
list (List)list<T>RequiredThe list to search in
item (Item)TRequiredThe item to search for

Outputs

PortTypeDescription
result (Result)booleanWhether the list contains the item

Implementation

List Length

list.length

Returns the length of a list

Also called: list, length, count, size.

Inputs

PortTypeRequired / defaultDescription
list (List)list<T>RequiredThe input list

Outputs

PortTypeDescription
length (Length)numberNumber of items in the list

Implementation

Range

list.range

Generates a list of numbers from start to end with a given step

Also called: list, sequence, numbers, generate, create.

Inputs

PortTypeRequired / defaultDescription
start (Start)number0Starting value (inclusive)
end (End)number10Ending value (exclusive)
step (Step)number1Step increment between values

Outputs

PortTypeDescription
list (List)list<number>Generated list of numbers

Implementation

How is this page?

Last updated on