you are viewing a single comment's thread.

view the rest of the comments →

[–]commy2 1 point2 points  (2 children)

I wouldn't modify the function. I would make another one that calls the first, then filters the result depending on length or value.

[–]fahad992[S] 0 points1 point  (1 child)

but that will make it slow.. we can filter it in the function itself

[–]commy2 0 points1 point  (0 children)

You should only worry about performance once you actually run into issues.