We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
I'm getting an error at line 47: return reduce(lambda s, (f, x): f(s, x), list, z)
It complains about the ( before f
The text was updated successfully, but these errors were encountered:
Anyone using this project?
Sorry, something went wrong.
I asked someone smarter than me and he said to change that line to:
return reduce(lambda x, y: y[0](x, y[1]), list, z)
The line as written here works in Python 2.x. But parameter tuple unpacking was removed in Python 3. The version here is the equivalent way to write it in Python 3 and also works in Python 2.
The lambda could be written like this to make the comparison clearer lambda s, f_x: f_x[0](s, f_x[1])
lambda s, f_x: f_x[0](s, f_x[1])
Fixed doctests #49
369a658
vlasovskikh
No branches or pull requests
Hi!
I'm getting an error at line 47: return reduce(lambda s, (f, x): f(s, x), list, z)
It complains about the ( before f
The text was updated successfully, but these errors were encountered: