range
From the SETL Wiki
| range | |
|---|---|
| Category | map |
| Syntax | prefix |
| Compatibility | |
| CIMS SETL | yes |
| SETL-S | yes |
| SETL2 | yes |
| GNU SETL | yes |
Contents |
Purpose
Get the set of all values in a map
Synopsis
range m
Description
Returns the set of values occurring in m, which must be a map.
Equivalent to {v: [k, v] in m}
Examples
-
range {}Result: {}
-
range {[1, 10], [1, 11], [2, 11], [2, 20]}Result: {10, 11, 20}
- (SETL2 only)
domain({[1, 10], [1, 11], [2]})Result: {om, 10, 11}.


