Captures

Captures are executable blocks passed to methods, stored in values, and invoked later.

Target guide

Captures power block APIs such as with, protect, query expressions, and callbacks. Positional capture arguments are exposed as #1, #2, and so on.

Examples

Working pattern

1local(up) = { #1->uppercase }2#up('ada')
Use this as a focused starting point and adapt it in context.

Related