Skip to content

← programming package

SubrangeIterator

An iterator that emits only a subrange of another iterable.

The subrange is specified by start and stop indices (where stop is exclusive) and a step size. Version 1.0.0

Ports/Properties

iterable

Data to iterate over.

verbose name
Iterable
default value
None
port type
DataPort
value type
object (can be None)
data direction
IN

curitem

Current item.

verbose name
Curitem
default value
None
port type
DataPort
value type
object (can be None)
data direction
OUT

start

Start index of the range. Negative values count from the end.

verbose name
Start
default value
None
port type
IntPort
value type
int (can be None)

stop

End index of the range. Negative values count from the end.

verbose name
Stop
default value
None
port type
IntPort
value type
int (can be None)

step

Step size of the range.

verbose name
Step
default value
1
port type
IntPort
value type
int (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)

verbose

Whether to print the current item to the console.

verbose name
Verbose
default value
False
port type
BoolPort
value type
bool (can be None)