The documentation says:

filter(function, collection)
Return a copy of collection, removing elements for which function is false. 
For associative collections,
the function is passed two arguments (key and value).

how to write the fucntion? I am trying to get elements which are nonzero. 
Any Help is much appreciated!

Reply via email to