Skip to main content

linq library

Project description

Symbol of ILinq

Symbol of ILinq

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

Uploaded Source

Built Distribution

ilinq-0.1.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ilinq-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4885bfc78d8fc9b77e7911c46aae3e6ba2abe0f32590c1c8a1d5093d654e6c9c
MD5 9d8469804bd0765d8193c257634ccf17
BLAKE2b-256 9b422f43706bad43c40a95d778c09a31f14282bbb50e3d950e2b3f1dcb9f0c64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ilinq-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ade3d9edf4cbc04ebb0673f75d9ede0522d46458db7b17144436234e1b17eeb2
MD5 6136b2844e7b4ee78c1e94923818d854
BLAKE2b-256 1e1c8d9e875f18aaf5ee8da9104b4a9e8ca67aa2833f0a10d09e0961fa3d4f91

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