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.4.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dovekie-0.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 bf164e29e3d62d9c0003898ae818e458a2508d942c1f9206b61548eebabfc48f
MD5 401e70727da8caacfe97a159ae510341
BLAKE2b-256 dbb07a3560cec7157bd663c1bf0b27a1c54f0c7718f04a210d88fa8d6c6c5099

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dovekie-0.4.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b8079132536122384f7c02b2085eac3e17aecf965601ffa40d55a44902e1511
MD5 07a5c13ee8b796604910449b4622b831
BLAKE2b-256 c9e4be2d32e16f90194ed9128f858d1f51c80395dfb3981befb3faf102a488bd

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