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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ilinq-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f4f801bd3ab34ea645c8d7dcb6e46879e189c7556c5b6e548e5880ba747ed2d6
MD5 2be7b6cf16df5330beadb42923f89d4a
BLAKE2b-256 6178c417ee93373873faa79627b8ebcc68577202d1b7ed0fd3b2967b4196e1ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ilinq-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a1878a5c01290f8f3f05fa91a674c0ef287600b66b3f9b72a6cb6800e7645be6
MD5 c294762a2f6c617891465ba48dfcd5cc
BLAKE2b-256 1e39586ea138629147e984b375b6004d5966f79cac2a72d109513296c14426e1

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