Skip to main content
Lazily produce a value. Can be used to return a string, list or numeric value whose actual value will only be calculated later, during synthesis.

Initializers


Static Functions


any_value

Produces a lazy token from an untyped value.

producerRequired

The lazy producer.

display_hintOptional

  • Type: str
  • Default: No hint
Use the given name as a display hint.

omit_empty_arrayOptional

  • Type: bool
  • Default: false
If the produced value is an array and it is empty, return ‘undefined’ instead.

list_value

Returns a list-ified token for a lazy value.

producerRequired

The producer.

display_hintOptional

  • Type: str
  • Default: No hint
Use the given name as a display hint.

omit_emptyOptional

  • Type: bool
  • Default: false
If the produced list is empty, return ‘undefined’ instead.

number_value

Returns a numberified token for a lazy value.

producerRequired

The producer.

string_value

Returns a stringified token for a lazy value.

producerRequired

The producer.

display_hintOptional

  • Type: str
  • Default: No hint
Use the given name as a display hint.