lambda in list comprehension acting funny
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Wed Jul 11 23:51:04 EDT 2012
On Wed, 11 Jul 2012 20:39:45 -0700, 88888 Dihedral wrote:
> I'll contribute my way of python programming:
>
> def powerb(x, b): #
> return x**b
Here's a shorter version:
py> pow
<built-in function pow>
> One functor is enough!
Nothing we have been discussing in this thread has been a functor, either
in the Haskell sense or the C++ sense.
--
Steven
More information about the Python-list
mailing list