Skip to main content

Module enablig a sh like infix syntax (using pipes)

Project description

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

Project details


Release history Release notifications

History Node

1.4.2

History Node

1.4.1

History Node

1.4

This version
History Node

1.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pipe-1.3.tar.gz (6.9 kB) Copy SHA256 hash SHA256 Source None Mar 29, 2011

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page