Skip to main content

linq library

Project description

https://travis-ci.org/yassu/ilinq.py.svg?branch=master

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

How To Install

$ pip install ilinq

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ilinq-0.2.3.tar.gz
Algorithm Hash digest
SHA256 4cd1e64e0555e65576020b8151291f8355a9becb71ba16842630a13472c12b36
MD5 d25bc0d403663ee8cd374b6948d9f967
BLAKE2b-256 d4ea758ee92333488696de8a62b7344cf1473e7e9fd011499bbc6be1ef50b070

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ilinq-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3c09e1bcc3af20c982998d7b140fc8ffceb4f28cc30f0fc4518866cf73e689ec
MD5 f1b550ef557f9f2fe072d4f4908dbd4c
BLAKE2b-256 d1763aee82a6fad07ed67984fa5c7e9d60ccc53e30fa040349587c068fc29a49

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