Metadata-Version: 2.0
Name: pyLINQ
Version: 0.4.0
Summary: Makes filtering and sorting lists easier and more readable.
Home-page: https://github.com/jmfernandes/pyLINQ
Author: Josh Fernandes
Author-email: joshfernandes@mac.com
License: MIT
Keywords: LINQ,list,list comprehension,lambda,utility,C#,where,set,filter,sort
Platform: UNKNOWN
Requires-Python: >=3.4
Description-Content-Type: text/x-rst

pyLINQ
======

This library makes filtering and sorting lists easier.

-----

Here is how easy it is to use

>>> my_list = List([1,-9,5,2,1])
>>> my_list.select("abs(x)").where("x>3") # get all elements where the absolute value is greater than 3.
[9,5]
>>> my_list.first("x % 2 == 0") # get the first even number
2
>>> nameList = List(['harry','tina','jeff','hank','john','tom','jeremy','brenda','steve'])
>>> nameList.groupby("x[0]")
[{'h': ['harry', 'hank']}, {'t': ['tina', 'tom']}, {'j': ['jeff', 'john', 'jeremy']}, {'b': ['brenda']}, {'s': ['steve']}]

Here is a list of functions

============= =========================== ======
   List of Methods for List Object
------------------------------------------------
function name example call with parameter output
============= =========================== ======
any           False                       False
all           False                       True
concat        True                        True
count         True                        True
distinct      True                        True
duplicate     False                       False
element       True                        True
except_set    False                       True
first         True                        True
groupby       True                        True
intersect     True                        True
last          True                        True
max           True                        True
min           True                        True
oftype        True                        True
orderby       True                        True
select        True                        True
skipwhile     True                        True
sum           True                        True
takewhile     True                        True
union         True                        True
where         True                        True
============= =========================== ======


