Skip to main content

left shift args to make a function a partial application

Project description

left shift arguments to make a function a partial application.

Build Status tested on 2.7, 3.2, 3.3

install

pip install lshift

API

  • arg(*args, **kwargs)

Example

from lshift import arg
import operator

double = operator.mul << arg(2)
mapinc = map << arg(lambda x: x+1)

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

lshift-0.1.1.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file lshift-0.1.1.tar.gz.

File metadata

  • Download URL: lshift-0.1.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lshift-0.1.1.tar.gz
Algorithm Hash digest
SHA256 48cf854e233c38b5046795182a38f9ed325fc1a69040440caeabffeeb4fa4587
MD5 a21c31291b2bc974718723f8475e7bfa
BLAKE2b-256 be531eccc39f889b957723be14313f315d3e885339e260be4cbf800f79c588bb

See more details on using hashes here.

Supported by

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