Metadata-Version: 1.1
Name: whatever
Version: 0.3
Summary: Easy way to make anonymous functions by partial application of operators.
Home-page: http://github.com/Suor/whatever
Author: Alexander Schepanovski
Author-email: suor.web@gmail.com
License: BSD
Description: The Whatever Object
        ===================
        
        An easy way to make lambdas by partial application of python operators.
        
        Inspired by Perl 6 one, see http://perlcabal.org/syn/S02.html#The_Whatever_Object
        
        Usage
        -----
        
        .. code:: python
        
            from whatever import _, that
        
            # get a list of guys names
            names = map(_.name, guys)
            names = map(that.name, guys)
        
            odd = map(_ * 2 + 1, range(10))
        
            squares = map(_ ** 2, range(100))
            small_squares = filter(_ < 100, squares)
        
            best = max(tries, key=_.score)
            sort(guys, key=-that.height)
        
            factorial = lambda n: reduce(_ * _, range(2, n+1))
        
        NOTE: chained comparisons cannot be implemented since there is no boolean overloading in python.
        
        
        TODO
        ----
        
        - make benches
        - use WhateverCode anonymous subclasses to optimize calls
        - optimized version which returns lambdas and partial ops instead of WhateverCode
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
