pipe 1.4.1
Module enablig a sh like infix syntax (using pipes)
Pipe is a module enablig a sh like infix syntax (using pipes)'.
As an exemple, here is the solution for the 2nd Euler Project exercise :
- "Find the sum of all the even-valued terms in Fibonacci
- which do not exceed four million."
Given fib a generator of fibonacci numbers
euler2 = fib() | where(lambda x: x % 2 == 0)
| take_while(lambda x: x < 4000000)
| add
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| pipe-1.4.1.tar.gz (md5) | Source | 2011-04-07 | 6KB | 864 | |
- Author: Julien Palard
- Home Page: https://github.com/JulienPalard/Pipe
- Download URL: https://github.com/JulienPalard/Pipe/tarball/master
- Categories
- Package Index Owner: JulienPalard
- DOAP record: pipe-1.4.1.xml
