Defer and Wrap

Defer

If you already know all the arguments to invoke a function, you can defer its call until the pipe gets invoked. This is often useful on the first function of a pipe.

To defer a function use the keyword defer before the function name

Example

PromiseĀ {<pending>}

Wrap

Wrapped functions are similar to defer functions but input arguments get passed into the wrapped function.

To wrap a function use the keyword wrap before the function name

Example

PromiseĀ {<pending>}