Talk:Range consolidation: Difference between revisions

A better-defined notation ?
(A better-defined notation ?)
Line 70:
 
::: I would also like to know what the Perl 6 "ranges" of [2] and [5,9,8] mean. Maybe [] => not a range, discard/ignore, else length!=2 ==> [min(),max()]? Either that should become part of the task description, or the Perl 6 entry should either explain or cull them. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 20:04, 30 March 2019 (UTC)
 
==A better-defined notation ?==
 
Mathematically, the ''consolidation'' here is an operation on two separate ''ordered pairs'', '''tuples''' or ''2tuples'', for which the conventional notation is '''(a, b)''' rather than [a, b]. See Wikipedia [https://en.wikipedia.org/wiki/Tuple Tuple].
 
The base ''consolidation'' (two tuples in, one tuple out), is then lifted to an operation on a structure containing '''many tuples''' which appears to be either ordered or unordered, and either potentially '''with''' duplicates (a '''list''' ?) or without duplicates (a '''set''' ?) .
 
Some of the noise and confusion might subside if we were to 'give math a chance' and
# define the domain of the the simple function we are asking for in terms of two '''tuples''' (or two ''pairs'' if you prefer),
# and define the domain of the ''lifted'' function on a container in terms of '''sets''' of tuples ''{(a, b), (y, z) ... (m, n)}'' or '''lists''' of tuples ''[(a, b), (y, z) ... (m, n)]'' [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 11:17, 31 March 2019 (UTC)
 
==Python tester==
9,655

edits