Metadata-Version: 1.0
Name: Aaron
Version: 1.0.0
Summary: Nice function composition
Home-page: https://github.com/BrianHicks/aaron
Author: Brian Hicks
Author-email: brian@brianthicks.com
License: TODO
Download-URL: https://github.com/BrianHicks/aaron
Description: # Aaron
        
        [![Build Status](https://secure.travis-ci.org/BrianHicks/aaron.png)](http://travis-ci.org/BrianHicks/aaron)
        
        Aaron adds some syntactic sugar to Python function composition.
        
        ## How?
        
        Say you have the following functions:
        
        ```python
        def add_one(n):
        return n + 1
        
        def double(n):
        return n * 2
        
        def ints_less_than(n):
        return range(1,n)
        
        def product(*ns):
        result = 1
        for n in ns:
        result *= n
        
        return result
        ```
        
        You could do something like this:
        
        ```python
        def two_n_plus_one(n):
        return add_one(double(n))
        
        def product_of_lesser_numbers(n):
        return product(*ints_less_than(n))
        ```
        
        Or, you could use Aaron, decorate your functions with `composable`, and do this:
        
        ```python
        two_n_plus_one = double > add_one
        
        product_of_lesser_numbers = ints_less_than >> product
        ```
        
        You've probably figured out by now that `>` is composition, and `>>` is will
        splat the results into the next function.
        
        ## Aaron? What?
        
        Yeah, the [composer](http://en.wikipedia.org/wiki/Aaron_Copland). Get it?
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development
