Talk:Range consolidation: Difference between revisions

 
(3 intermediate revisions by 2 users not shown)
Line 54:
:: By a null range, I meant an empty range as in:     '''[ ]'''       -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:55, 10 February 2019 (UTC)
 
::: That would be invalid input.   -- [[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 20:14, March 30, 2019 (UTC)
 
<!-- I've added Paddy3118's signature to his (above) response (after-the-fact). -- Gerard Schildberger. !-->
 
 
Line 66 ⟶ 68:
::Ah Cool. We're applying arbitrary, retroactive restrictions to tasks. Ok, do you want me to mark the C#, Go, Haskell, J, Phix. Python Functional & zkl entries incorrect or are you going to take care of it? After all, they don't use square brackets for the "inner containers". --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 11:11, 31 March 2019 (UTC)
 
:::No. In the Python solution, the outer container shows as square brackets too. That's the context of my answer to Hout above, (although I do need to point this out to the casual reader I guess, thanks). --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 21:14, 31 March 2019 (UTC)
 
===Perl 6 oddity===
 
::: 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)
 
:: That was intended to show that it dealt gracefully with "error" conditions. Much as you suspect, it pulls out the min and max values and uses them for the min and max of the range. Removed those test values to reduce confusion and comply with a strict interpretation of the task description. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 11:24, 31 March 2019 (UTC)
 
:::Thanks. Just for the record I am not against exceeding task requirements, just as long as they are properly explained. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 19:20, 1 April 2019 (UTC)
 
==A better-defined notation ?==
Line 82 ⟶ 87:
# 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 (and output type) of the ''lifted'' function on a container in terms of a '''set''' of tuples ''{(a, b), (y, z) ... (m, n)}'' or a '''list''' of tuples ''[(a, b), (y, z) ... (m, n)]'' [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 11:17, 31 March 2019 (UTC)
 
:: Hi, I had read of the use of the bracketing in conjunction with "ranges" but the link I find is to the same use for mathematical [https://en.m.wikipedia.org/wiki/Interval_(mathematics)#Excluding_the_endpoints intervals]
:: --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 23:11, 31 March 2019 (UTC)
 
==Python tester==
7,794

edits