Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- linqtable add methode for manipulate table
- Functions in the linqtable:
- Constructor
- - new(table) : create new linqtable for table in param
- add
- - add(item) : add item in table
- - addToIndex(item, index) : add item in table at a index
- - concat(table) : concat seft with table in param
- remove
- - removeLast() : remove last item in table
- - removeToIndex(index) : remove item at index in table
- utility
- - length() : return the number of items in table
- - tostring() : return a string of all item in table
- linq
- - forEach(lambda) : for all item exec the lambda(value,key):nil
- - select(lambda) : return linqtable of T define by lambda(value):T
- - where(lambda) : return filtred linqtable by lambda(value):boolean
- - first(lambda) : return lambda(value):T and return linqtable of T
- - sort(lambda) : return linqtable sort by lambda(item1,item2): 1,0,-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement