Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)
rosuav at gmail.com
Tue Mar 25 02:41:32 CET 2014
On Tue, Mar 25, 2014 at 12:31 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> On 3/24/2014 8:28 PM, Chris Angelico wrote:
>> Pure functional programming, from what I understand, doesn't *have*
>> variables other than function arguments.
> function *parameters*, if in the 'variable = name' camp
>> So the way to implement "x = 1" is to call a subfunction
> with a parameter named 'x'
>> with an argument of 1
Ah, yes, parameter. I tend to use the terms interchangeably, but they
do have formal definitions and distinctions. But otherwise, yes;
that's how I was seeing that.
More information about the Python-list