This project provides the module like linq of C# for Python.
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
Metadata
Release files for ilinq 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ilinq-0.4.2.tar.gz | 8.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ilinq-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.7 kB
Release files / ilinq-0.4.2.tar.gz
| Download URL | ilinq-0.4.2.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b36efa90dae12c9c202ce7b6cdfb1be7272f0dd767afaa70a58522ced16f4581
|
|
BLAKE2b-256 checksum How to use checksums |
ddbb62d7e2acdf26b6ba15ddeef52e5b1f104d32fee212906200bd97bf532fb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
|
Release files / ilinq-0.4.2-py3-none-any.whl
| Download URL | ilinq-0.4.2-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0619dd87602d67aca6c9b675efce54afefc5f9f1c93a004d7c89c5ba882fc40a
|
|
BLAKE2b-256 checksum How to use checksums |
d576846c070f3a485b01ee82ff49b2ffa9560b54ff576dfde4e42a8f0bc9c566
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
|