Lazy is a wrapper around a value that is computed lazily. It is useful for cases where the value is expensive to compute and the computation may not be needed at all.
Example
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
Value | No | The type of the value |
Name | Type | Optional | Description |
---|---|---|---|
cb | () => Value | No | The callback to lazily evaluate |