Skip to main content

linq library

Project description

https://gitlab.com/yassu/ilinq/badges/master/pipeline.svg

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

Documentation

How To Install

$ pip install ilinq

For developers, we enter

$ pip install pipenv
$ pipenv install --dev

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ilinq-0.3.3-py3-none-any.whl (13.1 kB view hashes)

Uploaded Python 3

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