capture->givenBlock

Returns the capture passed as a given block.

Target member

Signature

1capture->givenBlock()

Returns the capture passed as a given block.

capture->givenBlock is called with member syntax on a receiver value. capture->givenBlock affects how expressions are parsed. Small examples are worth running in isolation before placing the same shape inside a larger template block.

Examples

Basic call

1currentCapture->givenBlock
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.