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

Uploaded Source

Built Distribution

ilinq-0.2.7-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ilinq-0.2.7.tar.gz
Algorithm Hash digest
SHA256 16ce1177295569aaeeef05fd3b9dfba97b564ad0c2f63e4f226b2135d6c128de
MD5 e23717c96ef1b382757893ed7727cd6f
BLAKE2b-256 757b3030afc820c524eccb1c2669972587e815c91d1e5b2ac6f24aa4b2b36442

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ilinq-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 598caa193b42c12b42151686f2b117e2314527e58fb2868f5b57dc6e0671a817
MD5 f0730fdb29ba11f37ffa7b6eae5f393a
BLAKE2b-256 bac626848babf998e0b4844368cdc2e3e85e53925600db2d5c51dab8b774f21f

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