lambda in list comprehension acting funny

Steven D'Aprano steve+comp.lang.python at pearwood.info
Thu Jul 12 05:51:04 CEST 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