Functions

Lambda creates a function that can be applied using Apply and Map. Furthermore Extract Lambdas can be used to obtain a list of Lambda.

These can be used to reduce duplication, to work with nested lists. And allows for conditional execution of parts of components expressed as functions.

To create these elements simply right-click on an empty area inside the subflow and choose Create Lambda.

Lambda function

There are two primary usecases for Lambdas: 1. sharing the same flow execution without repeating the flow structure, 2. being able to Map. over lists.

Some advanced use-cases are possible using Lambdas, for example putting Lambda functions in lists to be executed using a Map. This section only covers the basics.

There are two ways to use the output from Lambdas: 1, connect it to the Apply function, 2. connect it to the Map node. The output can also be put in lists using Item to List and other nodes that work with generic types, and finally it can be read from and written to files.

If you want to create a new Lambda function simply right-click on an empty area inside the subflow and choose Create Lambda.

A Lambda function has only a single output on the outside. The type of the output is a function, with argument types depending on the types connected to the inputs.