ResultShortcut
A shortcut that wraps another shortcut, passing its result to a closure for reference.
-
The contents of the shortcut.
Declaration
Swift
public var body: some Shortcut { get } -
Declaration
Swift
public init(base: Base, variableName name: String? = nil, variableUUID uuid: UUID, @ShortcutBuilder builder: (Variable) -> Content)Parameters
baseThe base shortcut whose result to pass into the
builderclosure.nameAn optional name to use for the new variable.
uuidAn optional UUID to use for the new variable. Useful for building deterministic output.
builderA closure that is passed the result of the modified shortcut.
View on GitHub
ResultShortcut Structure Reference