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 spritual 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.5.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

dovekie-0.5.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dovekie-0.5.0.tar.gz
Algorithm Hash digest
SHA256 610caf83c36587588d1ff8ec2cae21f032eec5da7ebb4afe7e6d67cbaa97b8a4
MD5 944760be4f1920145c215433a4193fe5
BLAKE2b-256 22e115d3c3b2a46b77bebc0a1bb934bd74538794258c660f617f922fea6be89e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dovekie-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8ae604d941a2e8746334d7bbb034badc939082875e3caf87961003b80a73231
MD5 1f182481921a3375db4c7fa482e4b81c
BLAKE2b-256 0ce09af8ebab2d28ab7381e1cae45e073405c2563c33e071d99a4e20755ff1ff

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