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


Download files

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

Source Distribution

pipe-1.4.1.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file pipe-1.4.1.tar.gz.

File metadata

  • Download URL: pipe-1.4.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pipe-1.4.1.tar.gz
Algorithm Hash digest
SHA256 1bc9b3456c86406aea508edff9d606ee9caf4962fe534116f96a82e10c5bd0d7
MD5 3bff61cab5d189ce88ec44bd64f1788d
BLAKE2b-256 8a9df6e5733502049d878c5f7aaa3ce53732d5c55883d604c06f818222dc5cf2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page