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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ilinq-0.2.4.tar.gz
Algorithm Hash digest
SHA256 5ffe310b2892c8ee1e1b61d3d29d78e443d8287d89d542d33d25283c6869e17d
MD5 e543812af9ca615a7811a333820e6d24
BLAKE2b-256 8eab669ae3f2e3748bfa433f6432ef6f8e55675f28a324c7359accbb5ea7aee9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ilinq-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5289595f363f905af8d00840bbd8a7fe07340313ff60a291d1294e9b7063b919
MD5 f5bff3d922b191b939702ec3b64b9b57
BLAKE2b-256 587227e63837aff8680822bccabdd1fa1c97e566a8c8c71e457f15ec972d0f16

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