ArgumentsAccessor
- class ArgumentsAccessor
A convencience accessor for instantiation arguments.
This is a wrapper around
LazyIteratorthat additionally allows appending new arguments without having to create intermediate features. Arguments are input feature value expressions from:InvocationExpression.childrenConstructorExpression.result.children
Arguments can be removed by removing elements from the corresponding
childrencontainers.Members defined in
ArgumentsAccessor(1 member)
Append a new invocation
argument.Members inherited from
LazyIterator(7 members)
Returns
Trueif this range is not empty.
Get value at index, This is computed lazily. Throws
IndexErroron out of bounds.
Get value at index. This is computed lazily. Returns
Nonefor out of bounds index.
Collect all items into a
list.
Count the number of items in this range. This is computed lazily.
Check if this range is empty.
Lazily visit each item in this range. Visitation is stopped on returning
FalseorVisitAction.Stop; Methods
- append(arg: syside.ArgumentsAccessor.append.M, /) tuple[syside.FeatureValue, syside.ArgumentsAccessor.append.M]
Append a new invocation
argument.This takes care of constructing any intermediate elements.
Returns a pair of (
feature_value,argument).
- append(arg: type[syside.ArgumentsAccessor.append.M], /) tuple[syside.FeatureValue, syside.ArgumentsAccessor.append.M]
Append a new invocation
argumentwith the corresponding type.This takes care of constructing any intermediate elements.
Returns a pair of (
feature_value,argument).