Skip to main content

linq library

Project description

This project provides the module like linq of C# for Python.

How To Install

$ python setup.py install

For developers, we enter

$ pip install -r extra_require.txt

First Example

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from ilinq.ilinq import Linq


def is_prime(n):
    if n < 2:
        return False

    for j in range(2, n):
        if n % j == 0:
            return False

    return True


if __name__ == '__main__':
    print(
        Linq(range(10**4))
        .last(is_prime))
    # => 9973

LICENSE

Apache 2.0

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

ilinq-0.1.4.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

ilinq-0.1.4-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file ilinq-0.1.4.tar.gz.

File metadata

  • Download URL: ilinq-0.1.4.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ilinq-0.1.4.tar.gz
Algorithm Hash digest
SHA256 fd1ae09656dd2ebca5559cfa635be54759264e3f09d66f6c409100e64299d79d
MD5 5146c6b1fb0c4c1461dfe9e67739c469
BLAKE2b-256 f240cbeb1caa8acb7b34683bc74cc1fa757247e8feea1d9e5cfe4b192c8f4200

See more details on using hashes here.

File details

Details for the file ilinq-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ilinq-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 215b142ada77a27c17b4bccddeacb79ae309fd80f5e63e64247812544781a4dc
MD5 939f2c70afbbf51ea103a6fd1fac436a
BLAKE2b-256 8054f169098812581f0371766c60f56cb606a18aabd5229f64fc9f2b64477211

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