Skip to main content

A library that defines common SKI combinators from Combinatory Logic.

Project description

dovekie

dovekie is a Python library that provides SKI combinators from Combinatory Logic and common unary and binary functions that are often used with these combinators. It is the spiritual equivalent of the:

image-removebg-preview

How to install:

pip3 install dovekie

And how to use:

import operator as op
from itertools import accumulate

import dovekie as d


def mco(xs: list[int]) -> int:
    return max(accumulate(xs, d.phi1(op.add, op.mul, d.r)))

print(mco([1, 0, 1, 1, 1, 0, 0, 1, 1, 0])) # 3

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

dovekie-0.6.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

dovekie-0.6.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file dovekie-0.6.0.tar.gz.

File metadata

  • Download URL: dovekie-0.6.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for dovekie-0.6.0.tar.gz
Algorithm Hash digest
SHA256 cdce4e7b2cc4e12cc6456d27d87661e72efbaf88bfe7da140f9aac9ae7791658
MD5 531388f7b765dd77bcedadab81525415
BLAKE2b-256 1b022438f7895d20d9fcc8cdf95e30fb2031d5f7423d8e767a0ae96fcf399bb9

See more details on using hashes here.

File details

Details for the file dovekie-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: dovekie-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for dovekie-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0570f750ad83a3ded7bc0c0bea4e18bc26aecfaf8411cf134ed8571cc5d9abce
MD5 a095bcfbc6e9f93ed404cbed4eea1463
BLAKE2b-256 e163c5e7294bfd5c62efc50eca3a7110a262b6b50bc2bd047893a7219c71f818

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