KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Possible Duplicate: how to return only truthy values as the result of a map operation I have a collection which has falsy and truthy values. I would like to only count the truthy values, is there a way to do that ? (count (1 2 3 nil nil)) => 5
Tags (comma-separated)
Save Edits
Cancel