Skip to content

SetRepeatBuilder

set_repeat

set_repeat(target: Retriever) -> SetRepeatBuilder

Set the repeat of this property using another value

Parameters:

  • *target (Retriever) –

    The retriever path to set the repeat for. This can be a sequence of retrievers/list indices starting in the current struct

Returns:

  • SetRepeatBuilder

    A SetRepeatBuilder instance to continue defining additional combinator properties

SetRepeatBuilder

by

by(from_: Get) -> Combinator

Set the repeat of the previously selected property to the result after performing the manipulations from the provided Get instance

Parameters:

  • *from_ (Get) –

    The Get instance that encodes the manipulations to perform

Returns:

  • Combinator

    A combinator that encodes the setter logic defined by the SetRepeatBuilder chain

from_

from_(*source: Retriever | int) -> Combinator

Set the repeat of the previously selected property to the value of this retriever

Parameters:

  • *source (Retriever | int, default: () ) –

    The retriever path to fetch the value from. This can be a sequence of retrievers/list indices starting in the current struct

Returns:

  • Combinator

    A combinator that encodes the setter logic defined by the SetRepeatBuilder chain

from_len

from_len(*source: Retriever | int) -> Combinator

Set the repeat of the previously selected property to the length of this value if it is a list

Parameters:

  • *source (Retriever | int, default: () ) –

    The retriever path to fetch the value from. This can be a sequence of retrievers/list indices starting in the current struct

Returns:

  • Combinator

    A combinator that encodes the setter logic defined by the SetRepeatBuilder chain

Raises:

  • ValueError

    if the source value is not a list

to

to(val: Any) -> Combinator

Set the repeat of the previously selected property to this literal value

Parameters:

  • val (Any) –

    The literal value

Returns:

  • Combinator

    A combinator that encodes the setter logic defined by the SetRepeatBuilder chain