Talk:Range consolidation

From Rosetta Code
Revision as of 06:52, 3 February 2019 by Hout (talk | contribs) (The nature of these ranges, and thus of the task, is not yet clear)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The nature of these ranges, and thus of the task, is not yet clear

Ranges with bounds b0 and b1 covering all numbers in between doesn't seem to fully clarify or define the exercise, in particular, the intended nature of these ranges - some of the bounds (or range members ? set members ?) appear to be integers, others appear to be floats or reals. If either of the latter is intended, then "all numbers in between" sounds like a rather large, very possibly even infinite, set.

Clarification ?

Cases in which b0 is higher than b1 are also undefined in the preamble, but required in the test sample. Are we to understand these 'ranges' as unordered sets ? That seems to be suggested in the results shown from the Python code, which discard order without comment, implicitly treating [1 10.5] as equivalent to [10.5 1]

Clarification ? Hout (talk) 06:52, 3 February 2019 (UTC)