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

from dovekie import _phi1_, _r_


def mco(xs: list[int]) -> int:
    return max(accumulate(xs, _phi1_(op.add, op.mul, _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.3.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dovekie-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5787f1383efb212b12dde6d1fae9d379c622cb1ca50269c56f5f4c998a6a8520
MD5 ed07eec31cddbaeb557dd49cec7db829
BLAKE2b-256 6093b0658e3f07060e781ad2ece3ebb2244cbbae7d868f2fc71ca34434b2a0f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dovekie-0.3.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b08732cd964f7ac9706d62fb678e5fd55c5d95dc0ef0fe14d1d38bbe82fd2fc2
MD5 49a112a46325f31fdf11587a2386fad4
BLAKE2b-256 28733c26d76aa68362df232fad85a56fe2d871e4986f5642081939a04a1616fc

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