lambda in list comprehension acting funny
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Wed Jul 11 23:51:04 EDT 2012
More information about the Python-list mailing list
Wed Jul 11 23:51:04 EDT 2012
- Previous message (by thread): lambda in list comprehension acting funny
- Next message (by thread): lambda in list comprehension acting funny
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): lambda in list comprehension acting funny
- Next message (by thread): lambda in list comprehension acting funny
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list