Skip to content
SoulFire LogoSoulFire

Collection

Inputs, outputs, and defaults of the 16 built-in nodes in the Collection category.

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

Collection Add

collection.add

Returns a new collection with the item added

Also called: collection, add, append, insert.

Inputs

PortTypeRequired / defaultDescription
collection (Collection)CRequiredThe collection to extend
item (Item)TRequiredThe item to add

Outputs

PortTypeDescription
collection (Collection)CThe updated collection

Implementation

Collection Add All

collection.add_all

Returns a new collection with all items from another collection added

Also called: collection, add all, concat, merge.

Inputs

PortTypeRequired / defaultDescription
collection (Collection)CRequiredThe collection to extend
other (Other)DRequiredThe collection whose items should be added

Outputs

PortTypeDescription
collection (Collection)CThe updated collection

Implementation

Collection Contains

collection.contains

Checks if a list or set contains a specific item

Also called: collection, contains, includes, has.

Inputs

PortTypeRequired / defaultDescription
collection (Collection)CRequiredThe collection to search in
item (Item)TRequiredThe item to search for

Outputs

PortTypeDescription
result (Result)booleanWhether the collection contains the item

Implementation

Collection Is Empty

collection.is_empty

Checks if a list or set is empty

Also called: collection, empty, size.

Inputs

PortTypeRequired / defaultDescription
collection (Collection)CRequiredThe collection to inspect

Outputs

PortTypeDescription
result (Result)booleanWhether the collection is empty

Implementation

Collection Remove

collection.remove

Returns a new collection with the first matching item removed

Also called: collection, remove, delete.

Inputs

PortTypeRequired / defaultDescription
collection (Collection)CRequiredThe collection to modify
item (Item)TRequiredThe item to remove

Outputs

PortTypeDescription
collection (Collection)CThe updated collection

Implementation

Collection Remove All

collection.remove_all

Returns a new collection with all matching items removed

Also called: collection, remove all, subtract.

Inputs

PortTypeRequired / defaultDescription
collection (Collection)CRequiredThe collection to modify
other (Other)DRequiredItems to remove

Outputs

PortTypeDescription
collection (Collection)CThe updated collection

Implementation

Collection Retain All

collection.retain_all

Returns a new collection that keeps only items present in the other collection

Also called: collection, retain all, intersect, filter.

Inputs

PortTypeRequired / defaultDescription
collection (Collection)CRequiredThe collection to modify
other (Other)DRequiredItems to retain

Outputs

PortTypeDescription
collection (Collection)CThe updated collection

Implementation

Collection Size

collection.size

Returns the size of a list or set

Also called: collection, size, length, count.

Inputs

PortTypeRequired / defaultDescription
collection (Collection)CRequiredThe collection to measure

Outputs

PortTypeDescription
size (Size)numberThe number of items in the collection

Implementation

Collection to List

collection.to_list

Converts a collection to a list

Also called: collection, to list, convert.

Inputs

PortTypeRequired / defaultDescription
collection (Collection)CRequiredThe collection to convert

Outputs

PortTypeDescription
list (List)list<any>The collection as an ordered list

Implementation

Collection to Set

collection.to_set

Converts a collection to a set

Also called: collection, to set, convert, distinct.

Inputs

PortTypeRequired / defaultDescription
collection (Collection)CRequiredThe collection to convert

Outputs

PortTypeDescription
set (Set)set<any>The collection as an ordered set

Implementation

List Add

list.add

Returns a new list with an item appended

Also called: list, add, append.

Inputs

PortTypeRequired / defaultDescription
list (List)list<T>RequiredThe list to extend
item (Item)TRequiredThe item to append

Outputs

PortTypeDescription
list (List)list<T>The updated list

Implementation

List Create

list.create

Creates a native list from ordered inputs

Also called: list, create, build, collection.

Inputs

PortTypeRequired / defaultDescription
items (Items)anyOptionalItems to include in the list Multi-input collection is not implemented by the reactive engine.

Outputs

PortTypeDescription
list (List)list<any>The created list

Implementation

List Remove At

list.remove_at

Returns a new list with the item at the given index removed

Also called: list, remove, index, delete.

Inputs

PortTypeRequired / defaultDescription
list (List)list<T>RequiredThe list to modify
index (Index)numberRequiredThe index to remove

Outputs

PortTypeDescription
list (List)list<T>The updated list

Implementation

Map Keys

map.keys

Returns the keys of a map/object as a list

Also called: map, keys, keyset, json, object.

Inputs

PortTypeRequired / defaultDescription
map (Map)mapRequiredThe map whose keys should be returned

Outputs

PortTypeDescription
keys (Keys)list<string>The keys of the map

Implementation

Map Values

map.values

Returns the values of a map/object as a list in insertion order

Also called: map, values, json, object.

Inputs

PortTypeRequired / defaultDescription
map (Map)mapRequiredThe map whose values should be returned

Outputs

PortTypeDescription
values (Values)list<any>The values of the map

Implementation

Set Create

set.create

Creates a native set from inputs while preserving first-seen order

Also called: set, create, build, distinct, collection.

Inputs

PortTypeRequired / defaultDescription
items (Items)anyOptionalItems to include in the set Multi-input collection is not implemented by the reactive engine.

Outputs

PortTypeDescription
set (Set)set<any>The created set

Implementation

How is this page?

Last updated on