Talk:McNuggets problem: Difference between revisions

Line 30:
::By default, names for these abstractions tend to be taken, in many languages, including Python, from the Haskell/ML tradition, which simply happens to be the main idiom of the academic research in functional programming. The name of Python's '''dropwhile''' function is an example, as explained at the top of the Python itertools module documentation.
::You can safely leave it alone. No need for deletionary zeal. Like it or not, functional programming is just one of the ways in which Python interpreters and compilers are used. Live and let live. I have absolutely no objection whatsoever to other styles of programming. What is good depends entirely on what we are optimising for, and in what context, and what is meant by 'idiomatic' is best left to linter tools. This code is fully linted by AutoPep8 and Auto-flake8. That seems enough to me. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 08:15, 27 October 2018 (UTC)
:: Perhaps the helpful part of your question is about what that variant adds technically. The shortest answer might be (1.) The use of currying in Python (2.) The application of the itertools.dropwhile function (3.) the relationship between set comprehension and the (concat . map) composition of two atomic and universal functions. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 08:42, 27 October 2018 (UTC)
9,655

edits