I am trying to create functions for the property list. How do you create the attribute function for something like this?
list([1,2,3,4,5]).even()
should return:
[2,4]
The method should be easy but I am having trouble associating the function with the predefined object list.