Usage
import from IntegerSegment Z
Parameter | Type | Description |
---|---|---|
Z | IntegerType | an integer type |
Description
IntegerSegment(Z) implements open and closed segments of Z, i.e.a selection of equally spaced integers in a range of the form or .
Exports
PrimitiveType InputType OutputType SerializableType ..: Z % creation of a segment (Z, Z) % by: (%, Z) % change the spacing generator: % Generator Z iterate over a segment high: % Z upper bound low: % Z lower bound open?: % Boolean check whether a segment is open step: % Z spacing